Hi,
I would like to have a function that will give me a random phrase based on
the letters that I have given as input. The phrase must make sense. So, I
would (initially) make sure that the last word generated would be a noun,
and all previous words would be an adjective.
eg.
$phrase = generatephrase("abc");
I would like the value of $phrase to be something like this....
"another beneficial car"
or
"absolutely bodacious cookie"
I can do this using php, but I wanted to know where I can get the
following....
A complete data set (database export or text) list of the english dictionary
with the attribute or "word type"(noun, adjective, verb, etc).
So, my question is this......
a) does this script (or service) exist publically. (this would be preferable
as I dont want to re-invent anything)?
b) where can I get a list of dictionary entries.
Thanks 3 2365
Disco Octopus: Hi,
I would like to have a function that will give me a random phrase based on the letters that I have given as input. The phrase must make sense. So, I would (initially) make sure that the last word generated would be a noun, and all previous words would be an adjective.
a) does this script (or service) exist publically. (this would be preferable as I dont want to re-invent anything)?
I don't know about anything like that. But it wouldn't surprise me, problem
is finding it I guess.
b) where can I get a list of dictionary entries.
Ispell comes with american and british english dictionaries: http://fmg-www.cs.ucla.edu/fmg-membe...ff/ispell.html
André Næss
On Tue, 09 Dec 2003 00:25:45 +0000, André Næss hath writ: Disco Octopus:
b) where can I get a list of dictionary entries.
Ispell comes with american and british english dictionaries: http://fmg-www.cs.ucla.edu/fmg-membe...ff/ispell.html
Not straightforward, tho':
|[jonz~]grep dictionary /usr/local/share/ispell/english.dict
|antidictionary
|benedictionary
|dictionary/MS
|nondictionary
|[jonz~]head /usr/local/share/ispell/english.dict
|a/RSY
|aa
|aal/A
|aalii
|aam
|Aani
|aardvark/MS
|aardwolf
|Aaron/M
|Aaronic
|[jonz~]
Jonesy
--
| Marvin L Jones | jonz | W3DHJ | OS/2
| Gunnison, Colorado | @ | Jonesy | linux __
| 7,703' -- 2,345m | config.com | DM68mn SK
Don't know if a script exists already or not. Shouldn't be hard to write in
any case.
There's a link to a list of ~300000 words, with their grammatical functions
denoted. http://prdownloads.sourceforge.net/wordlist/pos-1.zip
Uzytkownik "Disco Octopus" <di****************@yahoo.com> napisal w
wiadomosci news:F_******************@news.optus.net.au... Hi,
I would like to have a function that will give me a random phrase based on the letters that I have given as input. The phrase must make sense. So, I would (initially) make sure that the last word generated would be a noun, and all previous words would be an adjective.
eg. $phrase = generatephrase("abc");
I would like the value of $phrase to be something like this.... "another beneficial car" or "absolutely bodacious cookie"
I can do this using php, but I wanted to know where I can get the following....
A complete data set (database export or text) list of the english
dictionary with the attribute or "word type"(noun, adjective, verb, etc).
So, my question is this......
a) does this script (or service) exist publically. (this would be
preferable as I dont want to re-invent anything)? b) where can I get a list of dictionary entries.
Thanks This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Piotr |
last post by:
Is there any way to split all merged words but www and e-mail addresses?
I have regexp
preg_replace("/(\.)(])/", "\\1 \\2", "www.google.com
any,merged.words mymail@domain.com")
it give me...
|
by: Ken Fine |
last post by:
I'm looking to find or create an ASP script that will take a string, examine
it for a search term, and if it finds the search term in the string, return
the highlighted search term along with the...
|
by: Rick |
last post by:
I have a program that reads from a file. In the file are a series of
words. I read in all the words into a string array, find the average
length, count the number of words, display the longest...
|
by: Sling |
last post by:
I code in Rexx on the mainframe which has 2 built-in functions: word(s,i) &
words(s).
word(s,i) returns the ith word in the s(tring), and words(s) returns the
number of words within the s(tring)....
|
by: Steven |
last post by:
Hello,
I have a question about strcmp(). I have four words, who need to be
compared if it were two strings. I tried adding the comparison values
like '(strcmp(w1, w2) + strcmp(w3, w4))', where...
|
by: MN |
last post by:
Hello all -
I'm really at wits end on this as I'm not having much success with locating
a function or other options I have. I'm working on a message board for a
website and I'm needing to check...
|
by: aaron |
last post by:
I have a few documents in which I need to get a total word count.
Can anyone help?
I'd like to create this program so I can get the result after entering
the filename, and
have the option to...
|
by: Xernoth |
last post by:
Hi,
I have an exercise that requests the following:
Write a function that reads words from an input stream and stores them
in a vector.
Use that function both to write programs that count the...
|
by: Hvid Hat |
last post by:
Hello
How should I go about marking certain words in a text? I've got a list of
words:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="Mark.xsl"?>
<Words>...
|
by: code green |
last post by:
I am trying to write a simple function that will take a string containing an
address line or business name and return it nicely formatted.
By this I mean extra spaces removed and words capitalised....
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |