From: tantalum <sph@posteo.eu>
To: Amirouche Boubekki <amirouche@hypermove.net>
Cc: Guile user <guile-user@gnu.org>,
guile-user-bounces+amirouche=hypermove.net@gnu.org
Subject: Re: [ANN] sph command-line interface library, automatic testing and guile projects list as csv
Date: Thu, 22 Dec 2016 18:09:35 +0000 [thread overview]
Message-ID: <170ab4726ffc855455b8810293414a1f@posteo.de> (raw)
In-Reply-To: <e07f294fb06c05a5f10478282fc71e73@hypermove.net>
> Would it be possible to have that list using an xml format that can be
> consumed by search engines?
yes. do you have a specific format in mind? i have heard of "sitemap"
format
> 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?
next prev parent reply other threads:[~2016-12-22 18:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-23 23:10 [ANN] sph command-line interface library, automatic testing and guile projects list as csv tantalum
2016-03-25 11:07 ` Ludovic Courtès
2016-12-21 19:34 ` Amirouche Boubekki
2016-12-22 18:09 ` tantalum [this message]
2016-12-22 19:11 ` Amirouche Boubekki
2016-12-22 19:42 ` tantalum
2016-12-23 17:48 ` Amirouche Boubekki
2016-12-21 19:41 ` Amirouche Boubekki
-- strict thread matches above, loose matches on Subject: below --
2016-03-26 0:33 jkal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=170ab4726ffc855455b8810293414a1f@posteo.de \
--to=sph@posteo.eu \
--cc=amirouche@hypermove.net \
--cc=guile-user-bounces+amirouche=hypermove.net@gnu.org \
--cc=guile-user@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).