Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Identify words

1 view
Skip to first unread message

giantpassos

unread,
Jul 10, 2008, 6:10:14 PM7/10/08
to
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.

Thanks,

Diego Passos.

A.L.

unread,
Jul 10, 2008, 7:51:46 PM7/10/08
to
On Thu, 10 Jul 2008 15:10:14 -0700 (PDT), giantpassos
<dpsilva...@gmail.com> wrote:

>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.

Eusebius

unread,
Jul 11, 2008, 3:46:03 AM7/11/08
to
giantpassos a écrit :

"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

Duncan Patton

unread,
Jul 17, 2008, 8:58:55 PM7/17/08
to
On Thu, 10 Jul 2008 15:10:14 -0700 (PDT)
giantpassos <dpsilva...@gmail.com> wrote:

| ?- assertz(identify('bec','because')).

Dhu (always willing to provide trivial answers to trite questions;-)

Cesar Rabak

unread,
Jul 18, 2008, 8:35:22 AM7/18/08
to
Duncan Patton escreveu:
OK, now we can ask (as an exercise, obviously) :-) why it would be a
good idea to create a predicate and not build up a collection of facts,
and this was your intention, right? ;-)

Regards,

fodor...@gmail.com

unread,
Jul 19, 2008, 8:56:52 AM7/19/08
to

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.

Duncan Patton

unread,
Jul 21, 2008, 3:38:33 AM7/21/08
to

Mebbe 'cause to bee or not 2be is not the rite question?

Dhu

0 new messages