Fun! How did you do that?
with word lists for specific parts of speech, like this:
(define-as verb vector
"extend" "revolutionise"
"offer" "obtain"
"access" "improve")
and then patterns like this:
(define patterns
(list->vector
(let*
( (source
(list (list verb "and" verb noun "to" goal "with" adjective
noun)
(list verb "," verb "and" verb noun)
(list adjective noun predicative-adjective combinator
adjective noun)
(list (random-choice "" verb goal-prefix) adjective
adjective noun (random-choice "" noun noun))
(list verb "your" adjective noun "and" verb adjective
noun)
(list verb noun predicative-adjective "and" verb
adjective noun predicative-adjective)
(list (random-choice verb goal) noun
predicative-adjective combinator noun combinator
adjective noun predicative-adjective)
(list verb "and" verb adjective adjective noun)
(list noun noun combinator noun predicative-adjective)))
(source+goal
(map (l (e) (if (eq? verb (first e)) (append e (list "and"
goal)) e)) source)))
(append source source+goal))))
the patterns are then used to create sentences with words selected
from the lists they contain. the words are selected in random order
and with making sure that a word has not already been used in the same
sentence.
here is the source code:
http://files.sph.mn/s/computer/create-marketing-bs.scm
On 2016-12-21 19:34, Amirouche Boubekki wrote:
On 2016-03-24 00:10, tantalum wrote:
i am happy to announce a new version of the (sph cli) library for
command-line option parsing.
a big new feature besides general improvements is integrated support
for sub commands similar to what "git" has (git push, git pull and
the
like).
the library documentation and overview can be found here:
http://sph.mn/content/49f
apart from command-line interfaces, i did something for automatic
testing. (sph test) has been rewritten and now has test modules. you
can have a look at it here:
http://sph.mn/content/97b
also, the list of guile related projects on the net is now available
as a csv download via a link on the page.
http://sph.mn/content/3e73
Would it be possible to have that list using an xml format that can
be consumed by search engines? Please? Maybe I can help making a
patch?
and while we are at it, for fun, http://sph.mn/o/bs generates weird
business software marketing headlines and topics.
Fun! How did you do that?