Re: A script for poets

2006-02-10 Thread Greg Barniskis

Urs Schroffenegger wrote:

To make an independent rhyming dictionnary program, I think you 
basically need to have a list of words written phonetically and with 
syllabes separation. After that, it's only a search function to find the 
matching pattern. The difficult part is to get the phonetic data.


Isn't this sort of thing (word list with phonetic data) built into 
aspell's dictionaries? Also, whatever Thunderbird 1.5 is doing for 
spell checking is clearly doing some rather sophisticated phonetic 
matching (based on what I've seen it try to do lately with people's 
last names that it doesn't recognize). I'm sure there must be other 
OSS applications out there whose sources would at least provide 
clues on how to proceed, if not a handily packaged solution.


PS re: the spam poetry submission... funny! For more random poetry 
fun, Google for the Shakespearian insult generator (several versions 
exist).


--
Greg Barniskis, Computer Systems Integrator
South Central Library System (SCLS)
Library Interchange Network (LINK)
, (608) 266-6348
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: A script for poets

2006-02-10 Thread Urs Schroffenegger

Kristian Vaaf wrote:



Thank you all for your interesting replies!

Though I did not mean to ask for advice on a script that would
generate texts for you. I mean, that's impossible.

However, using http://www.rhymer.com, it would do something like this.

1 is for End rhymes
2 is for Last syllable rhymes
3 is for Double rhymes
4 is for Beginning rhymes
5 is for First syllable rhymes

([EMAIL PROTECTED])(16:23:02/10/06)
(%:~) rhymer free 1

End rhymes for "free":

abbey, ably, [snippy], zuni

Would this be possible?


You could try to send the post request of their form from a language 
like python and see what comes back, but i'm not sure they'd appreciate 
you using their site without passing through their form and injecting 
requests in their CGI. It's some sort of hacking...


To make an independent rhyming dictionnary program, I think you 
basically need to have a list of words written phonetically and with 
syllabes separation. After that, it's only a search function to find the 
matching pattern. The difficult part is to get the phonetic data.



All the best,
Vaaf


urs
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: A script for poets

2006-02-10 Thread marianne mueller
This doesn't help with rhyming, but it's fun to strip
off the subjects of spam, and later manually choose
out the ones you like.

Begging people's indulgence, here's one spam poem.
I call it "Where Do Dark Circles Lie?"

Where Do Dark Circles Lie?
dish dominate
newborn programmer
archetypal gaiety
chantilly spleen
bloodshed rivet
miterwort
destitute bacon
tobacco camera
prophylactic winnipeg
apathetic chablis
scanty house windings
holy cow mr green
look rich now get rich later
don't tell your spouse you need viagra
kinky shemales
there's the whole.
and when this.

Earth is not round!  It's dirty!

edge my allow out
a human
a wrong

[so strong
the plan
then gone no doubt]

neutron lithium daniel
Please help in saving my soul!

Angels Part - mutinies
Part - umpire-Inverness
You No longer need drugs to get an Erectlon

--

I think these silly "poems"  are pleasingly absurb and
surrealistic.

Also I don't think English is particularly imperialistic in
taking from other languages.   First, I don't think we
can anthropomorphize language, and second, there are
lots of other examples.   (Some might hold that language
is supremely subject to anthropomorphism, but that
argument would be seriously off-topic!)

Marianne
newbie reading the list prior to installing FreeBSD


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: A script for poets

2006-02-10 Thread Kristian Vaaf


Thank you all for your interesting replies!

Though I did not mean to ask for advice on a script that would
generate texts for you. I mean, that's impossible.

However, using http://www.rhymer.com, it would do something like this.

1 is for End rhymes
2 is for Last syllable rhymes
3 is for Double rhymes
4 is for Beginning rhymes
5 is for First syllable rhymes

([EMAIL PROTECTED])(16:23:02/10/06)
(%:~) rhymer free 1

End rhymes for "free":

abbey, ably, achy, acme, acne, aerie, agree, airy, algae, alley, 
amply, amy, andy, angry, ante, anti, antsy, any, aptly, army, arty, 
ashy, aurae, aussie, awfully, baby, badly, baggy, bailee, bailey, 
bailie, baldly, bali, balky, balmy, bandy, banshee, banti, barely, 
barky, barley, batty, bawdry, bawdy, be, beachy, beady, beanie, 
beastly, beauty, bee, beefy, beery, belfry, belly, benny, berkeley, 
berry, betty, bevy, biddy, biggie, billy, birdie, bitchy, bitsy, 
bitty, blackly, blandly, blankly, blarney, bleakly, bleary, blindly, 
blistery, blithely, blocky, bloody, bloomy, blotchy, blowsy, blowy, 
blowzy, bluey, bluntly, blurry, blustery, bobby, body, bogey, boggy, 
bogy, boise, boldly, bonnie, bonny, bony, booby, boogie, bookie, 
bootee, booty, boozy, bosky, bossy, botany, botchy, bougie, bouncy, 
boundary, bounty, bowery, bowie, brainy, brambly, brandy, brashly, 
brassie, brassy, bratty, bravely, brawly, brawny, breathy, breezy, 
bribee, briefly, briery, brightly, briny, briskly, bristly, broadly, 
bronzy, broody, broomy, brothy, brownie, bruskly, brusquely, bubbly, 
buddy, buffy, buggy, bulgy, bulky, bully, bumpy, bunchy, bunny, buoy, 
burley, burly, burry, bury, busby, bushy, busty, busy, cabby, caddie, 
caddy, cadre, cagey, calmly, campi, campy, candy, canny, carefree, 
carny, carrie, carry, catchy, catty, cb, cc, cd, chalky, chamois, 
chancy, chargee, charley, charlie, chassis, chastely, chatty, 
cheaply, cheeky, cheery, cheesy, cherry, chesty, chewy, chichi, 
chickpea, chiefly, chile, chili, chilly, chimney, chintzy, chippy, 
chloe, choicely, choky, choosey, choosy, choppy, christie, christly, 
chubby, chuffy, chummy, chunky, chutney, city, clammy, classy, 
clayey, cleanly, clearly, clergy, clerkly, clingy, cliquey, cloddy, 
cloggy, closely, clotty, cloudy, clumpy, clumsy, clunky, coarsely, 
cockney, cocky, coffee, coldly, collie, comely, comfy, commie, coney, 
connie, cony, cookie, cooley, coolie, coolly, cootie, copy, corky, 
corny, corrie, costly, coulee, country, county, courtly, covey, 
cowrie, cowry, coyly, cozy, crabby, crackly, crafty, craggy, cranky, 
cranny, crappie, crappy, crassly, crawly, crazy, creaky, creamy, 
cree, creepy, crinkly, crisply, crispy, croaky, crony, crosby, 
crossly, croupy, cruddy, crudely, cruelly, crumbly, crumby, crummy, 
crunchy, crusty, cubby, cuddly, cuddy, curie, curly, curry, curtly, 
curtsey, curtsy, curvy, cushy, cutely, cutesy, cutey, cutie, daddy, 
daffy, daftly, daily, dainty, dairy, daisy, dally, damply, dandy, 
dankly, darkly, deadly, deafly, dearie, dearly, deathly, debbie, 
debris, debtee, decree, deeply, deftly, degree, delhi, deli, dempsey, 
densely, derby, dewy, dickey, dilly, dimly, dimply, dinghy, dingy, 
dinkey, dinky, dippy, direly, dirty, disney, ditty, divvy, dixie, 
dizzy, dodgy, doggie, doggy, dogie, doily, dolby, dolly, donkey, 
dopey, dotty, doubly, doughy, dourly, dowdy, downy, dowry, doxy, 
dozy, drably, draftee, drafty, draggy, draughty, drawee, dreamy, 
dreary, dressy, drifty, drily, drippy, drizzly, droopy, dropsy, 
drossy, drowsy, druggie, druggy, dryly, duchy, ducky, duddie, duddy, 
duffy, dully, duly, dumbly, dummy, dumpy, dusky, dusty, duty, early, 
earthly, earthy, easy, eddy, edgy, eely, eerie, eery, eighty, emcee, 
emmy, empty, ennui, entry, envy, erie, esprit, every, faintly, 
fairly, fairy, falsely, falsie, fancy, fanny, farcy, fatly, fatty, 
faulty, fee, feebly, feisty, ferny, ferry, fiercely, fiery, fifty, 
fiji, filly, filmy, filthy, finely, finny, firmly, firstly, fishy, 
fitly, fizzy, flabby, flaky, flappy, flashy, flatly, flaunty, flaxy, 
flea, flecky, flee, fleecy, fleetly, fleshly, fleshy, flighty, 
flimsy, flinty, flirty, floaty, flooey, floosie, floozie, floozy, 
floppy, flossy, flouncy, flowery, fluffy, fluky, flunkey, flunky, 
flurry, fluty, foamy, foggy, fogy, folksy, folly, fondly, foresee, 
forky, forty, foully, foundry, fourthly, foxy, frankly, freaky, 
freckly, free, freebie, freely, frenzy, freshly, friday, friendly, 
frilly, frisbee, frisky, frizzly, frizzy, frosty, frothy, frowsy, 
frowzy, fruity, frumpy, fuddy, fully, fumy, fundy, funky, funny, 
furry, fury, fusee, fussy, fusty, fuzzy, gabby, gaily, galley, 
gamely, gamey, gamy, gandhi, gangly, gantry, gassy, gatsby, gaudy, 
gauntly, gauzy, gawky, gee, genie, gently, gentry, germfree, germy, 
ghastly, ghostly, ghosty, giddy, giggly, gimpy, gipsy, gladly, 
glairy, glary, glassy, gleamy, glee, gleety, glibly, glitzy, gloomy, 
glory, glossy, gluey, glumly, gnarly, goalie, goatee, gobi, goby, 
godly, golly, goodie, go

Re: A script for poets

2006-02-09 Thread Jorn Argelo

Kristian Vaaf wrote:



Hello!

Again with my script requests, this time I'm wondering if anybody
has ever felt like writing a shell script that makes it easy to write 
rhymes,

poems or just make up funny lines.

http://www.rhymer.com is a great place, but unfortunately it requires 
a browser.


Or maybe this is a feature that extends beyond the purpose of shell 
scripting,

and that maybe for such I should start looking into languages like Ruby?

Hoping for generous expert advise.

Thank you, peasants and poets :)

Vaaf (wuff)

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"


Hmm, maybe you could use LWP (libwww-perl) to execute search queries to 
a site like rhyme.poetry.com and then get the results in an array and do 
whatever you want with the output. Basically LWP is capable of printing 
out the raw HTML format, so a little bit of handy dandy perl functions 
would help a lot. LWP is a very nice perl module, and I suggest you look 
into that if you want to use an existing site to get your rhymes out.


Cheers,

Jorn
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: A script for poets

2006-02-09 Thread Gary Kline
On Wed, Feb 08, 2006 at 04:49:47PM -0600, [EMAIL PROTECTED] wrote:
> On 2/8/06, Gary Kline <[EMAIL PROTECTED]> wrote:
> > On Wed, Feb 08, 2006 at 08:29:21PM +0100, Kristian Vaaf wrote:
> > > Again with my script requests, this time I'm wondering if anybody
> > > has ever felt like writing a shell script that makes it easy to write
> > > rhymes,
> > > poems or just make up funny lines.
> 
> As below, but textproc/dadadodo is about it so
> far as meaningfulness in computer generated
> text can get.
> 
> >
> > This may dovetail into something I was actively working on
> > several years ago: a C/C++ program that took unmetered text
> > as input and output N-syllabic lines as output.
> >
> . . .
> 
> Quite the task, that.  Reading Spenser, Shakespeare,
> and older metrical and rhyming poetry can give you
> an indication of how difficult even the bland, mechanical
> regurgiation of poetry can be:
> Most words ending in -ed have one more syllable than
> we usually enunciate.
> Room and Rome can rhyme.
> Wawain, Gawain, Gawaine are exactly the same person.
> 
> Most of this can be scripted around, double entries in
> the syllabary for possible pronunciations and known
> obscure rhymes, etc.  Still leaves no way to innovate
> structure that's not coded in.
> Anyway, this gets into AI, and as jwz points out, most of
> modern AI research is fairly intellectually dishonest.
> 

Yeh, given the way the English has stolen, borrowed 
words from Everywhere--and still is--it just makes
sense to spend a few years taking poetry classes 
than invest decades trying to invent an AI tool.

Poetry, creativity, philosophy (for starters) are 
just a few areas where we poor humans still beat 
any program.  Thanks the gods.


gary

PS:  among my Jottings stuff I dreamed up something 
 like:  "the reign of depression" ... .   AI?
 Foo!


> 

-- 
   Gary Kline [EMAIL PROTECTED]   www.thought.org Public service Unix

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: A script for poets

2006-02-09 Thread JP
Kind of reminds me of the time I took an eggdrop bot for IRC, added a HAL "AI" 
script to it, then fed it a bunch of lines of poetry by various artists, and 
got amazed at its output when various users joined the channel and began 
chatting.

At one point a new user joined the channel, said his gratuatous hello's and 
the like and began chatting with the bot never realizing it was a bot..

I had that bot for a few years before I lost it. And had the log file for good 
measure and humour.

I always wished to try and recreate that bot, sure was entertaining, and for a 
while was quite adept at creating/hashing together some interesting lines of 
poetry mixed in from the AI HAL bot had learned from others conversations..

Enjoy the day!

Unix forever..
JSP


On Thursday 09 February 2006 05:27 am, cpghost wrote:
> On Wed, Feb 08, 2006 at 12:44:00PM -0800, Gary Kline wrote:
> > On Wed, Feb 08, 2006 at 08:29:21PM +0100, Kristian Vaaf wrote:
> >> Again with my script requests, this time I'm wondering if anybody
> >> has ever felt like writing a shell script that makes it easy to write
> >> rhymes,
> >> poems or just make up funny lines.
>
> You mean something like this to group words by endings?
>
> % rev /usr/share/dict/words | sort | rev
>
> > This may dovetail into something I was actively working on
> > several years ago: a C/C++ program that took unmetered text
> > as input and output N-syllabic lines as output.
>
> Interesting.
>
> > I created a dictionary of thousands of words with one, two,
> > three, or more syllabes in my database.  I played around
> > with this idea until I realized that "real" poetry demands
> > imagery (metaphor, simile), and not simply meter or rhyme.
> > After 7 years of my writing group I've learned how DIFFICULT
> > it is to write a good poem.  Or prose.
>
> Absolutely!
>
> >Gary Kline [EMAIL PROTECTED]   www.thought.org Public service
> > Unix
>
> Regards,
> -cpghost.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: A script for poets

2006-02-09 Thread cpghost
On Wed, Feb 08, 2006 at 12:44:00PM -0800, Gary Kline wrote:
> On Wed, Feb 08, 2006 at 08:29:21PM +0100, Kristian Vaaf wrote:
>> Again with my script requests, this time I'm wondering if anybody
>> has ever felt like writing a shell script that makes it easy to write 
>> rhymes,
>> poems or just make up funny lines.

You mean something like this to group words by endings?

% rev /usr/share/dict/words | sort | rev 

>   This may dovetail into something I was actively working on
>   several years ago: a C/C++ program that took unmetered text
>   as input and output N-syllabic lines as output.

Interesting.

>   I created a dictionary of thousands of words with one, two,
>   three, or more syllabes in my database.  I played around 
>   with this idea until I realized that "real" poetry demands
>   imagery (metaphor, simile), and not simply meter or rhyme.
>   After 7 years of my writing group I've learned how DIFFICULT 
>   it is to write a good poem.  Or prose.  

Absolutely!

>Gary Kline [EMAIL PROTECTED]   www.thought.org Public service Unix

Regards,
-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: A script for poets

2006-02-09 Thread Urs Schroffenegger

Kristian Vaaf wrote:



Hello!

Again with my script requests, this time I'm wondering if anybody
has ever felt like writing a shell script that makes it easy to write 
rhymes,

poems or just make up funny lines.

http://www.rhymer.com is a great place, but unfortunately it requires 
a browser.


Or maybe this is a feature that extends beyond the purpose of shell 
scripting,

and that maybe for such I should start looking into languages like Ruby?

Hoping for generous expert advise.

Thank you, peasants and poets :)

Vaaf (wuff)

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"



Hello,

writing sentences isn't an easy task for a program, because you need 
some understanding of the meaning of the sentence and some times a good 
grab of the peculiar grammar quirks of a language. Have a look at google 
translate to have an example of the results :-D


A rhyming dictionnary should be possible to do, with a database of 
syllabes and pronunciation, but you need to fill the database first...


For writing funny sentences, have a look at the "polygen" program: it 
writes sentences according to a defined grammar:

http://freshmeat.net/projects/polygen/
I know it has a debian package and works under macosx and windows, so I 
don't think there should be problems compiling it under freebsd.

The main site is in italian, though, I haven't found an english version.

urs


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: A script for poets

2006-02-09 Thread Urs Schroffenegger

Kristian Vaaf wrote:



Hello!

Again with my script requests, this time I'm wondering if anybody
has ever felt like writing a shell script that makes it easy to write 
rhymes,

poems or just make up funny lines.

http://www.rhymer.com is a great place, but unfortunately it requires 
a browser.


Or maybe this is a feature that extends beyond the purpose of shell 
scripting,

and that maybe for such I should start looking into languages like Ruby?

Hoping for generous expert advise.

Thank you, peasants and poets :)

Vaaf (wuff)


Hello,

writing sentences isn't an easy task for a program, because you need 
some understanding of the meaning of the sentence and some times a good 
grab of the peculiar grammar quirks of a language. Have a look at google 
translate to have an example of the results :-D


A rhyming dictionnary should be possible to do, with a database of 
syllabes and pronunciation, but you need to fill the database first...


For writing funny sentences, have a look at the "polygen" program: it 
writes sentences according to a defined grammar:

http://freshmeat.net/projects/polygen/
I know it has a debian package and works under macosx and windows, so I 
don't think there should be problems compiling it under freebsd.

The main site is in italian, though, I haven't found an english version.

urs




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: A script for poets

2006-02-08 Thread [EMAIL PROTECTED]
On 2/8/06, Gary Kline <[EMAIL PROTECTED]> wrote:
> On Wed, Feb 08, 2006 at 08:29:21PM +0100, Kristian Vaaf wrote:
> > Again with my script requests, this time I'm wondering if anybody
> > has ever felt like writing a shell script that makes it easy to write
> > rhymes,
> > poems or just make up funny lines.

As below, but textproc/dadadodo is about it so
far as meaningfulness in computer generated
text can get.

>
> This may dovetail into something I was actively working on
> several years ago: a C/C++ program that took unmetered text
> as input and output N-syllabic lines as output.
>
. . .

Quite the task, that.  Reading Spenser, Shakespeare,
and older metrical and rhyming poetry can give you
an indication of how difficult even the bland, mechanical
regurgiation of poetry can be:
Most words ending in -ed have one more syllable than
we usually enunciate.
Room and Rome can rhyme.
Wawain, Gawain, Gawaine are exactly the same person.

Most of this can be scripted around, double entries in
the syllabary for possible pronunciations and known
obscure rhymes, etc.  Still leaves no way to innovate
structure that's not coded in.
Anyway, this gets into AI, and as jwz points out, most of
modern AI research is fairly intellectually dishonest.

--
--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: A script for poets

2006-02-08 Thread Gary Kline
On Wed, Feb 08, 2006 at 08:29:21PM +0100, Kristian Vaaf wrote:
> 
> Hello!
> 
> Again with my script requests, this time I'm wondering if anybody
> has ever felt like writing a shell script that makes it easy to write 
> rhymes,
> poems or just make up funny lines.
> 
> http://www.rhymer.com is a great place, but unfortunately it requires 
> a browser.
> 
> Or maybe this is a feature that extends beyond the purpose of shell 
> scripting,
> and that maybe for such I should start looking into languages like Ruby?
> 
> Hoping for generous expert advise.


This may dovetail into something I was actively working on
several years ago: a C/C++ program that took unmetered text
as input and output N-syllabic lines as output.

I created a dictionary of thousands of words with one, two,
three, or more syllabes in my database.  I played around 
with this idea until I realized that "real" poetry demands
imagery (metaphor, simile), and not simply meter or rhyme.
After 7 years of my writing group I've learned how DIFFICULT 
it is to write a good poem.  Or prose.  
> 
> Thank you, peasants and poets :)

I'm closer to being a peasant that poet.  

"I ain't no poet
And I know it."

gary


> 
> Vaaf (wuff)
> 

-- 
   Gary Kline [EMAIL PROTECTED]   www.thought.org Public service Unix

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


A script for poets

2006-02-08 Thread Kristian Vaaf


Hello!

Again with my script requests, this time I'm wondering if anybody
has ever felt like writing a shell script that makes it easy to write rhymes,
poems or just make up funny lines.

http://www.rhymer.com is a great place, but unfortunately it requires 
a browser.


Or maybe this is a feature that extends beyond the purpose of shell scripting,
and that maybe for such I should start looking into languages like Ruby?

Hoping for generous expert advise.

Thank you, peasants and poets :)

Vaaf (wuff)

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"