Please send me.
Thanks,
Diego Passos.
>Anyone already done a prolog program which identify the word when i
>insert the beginning of the word:
>?- Example: identify( 'bec',L).
>?- L='because'
>
>Please send me.
No. This is YOUR homework
A.L.
"because" is a concatenation of "bec" and something else, and is also
something known by the program as a "word". Does this reformulation helps?
Eusebius
| ?- assertz(identify('bec','because')).
Dhu (always willing to provide trivial answers to trite questions;-)
Regards,
Hi,
Maybe you can load the Prolog WordNet and check find all words
starting with some string.I don't have what you ask for, but I have a
spell checker written in Prolog and you can train it on some big text
( http://www.cs.sunysb.edu/~pfodor/spellChecker/ ). This is how it
work:
?- correct("surfac",S),writeString(S).
surface
S = [115, 117, 114, 102, 97, 99, 101]
?- correct("stuc",S),writeString(S).
stuck
S = [115, 116, 117, 99, 107]
Have fun!
Paul.
Mebbe 'cause to bee or not 2be is not the rite question?
Dhu