Kickstart has asked for the wisdom of the Perl Monks concerning the following question:
I would like to write a script that spews sentences from a word list in proper english formats, but am having trouble figuring out what those formats are and how I'd do it...the pseudoperl below may illustrate:
@sentenceformats = ( 'article verb noun', 'article verb noun verb noun' ) ***Here would be a section that takes a random one of @sentenceformats + and picks some articles, verb and nouns from a word list and puts th +em in the format supplied, thereby making a nonsensical, but valid st +ructurally english sentence.
Any ideas would be appreciated.
Kickstart
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sentence format
by TheoPetersen (Priest) on Feb 21, 2001 at 21:40 UTC | |
|
Re: Sentence format
by arturo (Vicar) on Feb 21, 2001 at 21:32 UTC | |
|
Re: Sentence format
by marius (Hermit) on Feb 21, 2001 at 21:37 UTC | |
|
Re: Sentence format
by merlyn (Sage) on Feb 21, 2001 at 22:52 UTC | |
|
Re: Sentence format
by SilverB1rd (Scribe) on Feb 21, 2001 at 23:27 UTC | |
|
Re: Sentence format
by InfiniteSilence (Curate) on Feb 21, 2001 at 21:49 UTC |