[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lojban-beginners] Re: Do you agree with this guy?
Prolog isn't like C or 3rd generation languages, its more like SQL for
anything. You're not confined to relational database rules so complex
things can get very simple if you don't think procedurally.
s -> np vp
np -> det n
vp -> v np
vp -> v
det -> a
det -> the
n -> woman
n -> man
v -> shoots (this is actual code btw)
above is a simple example of how you teach the computer to recognize
simple English. A sentence is a noun-phrase + a verb-phrase, a noun
phrase is a determinate and a noun, a verb-phrase is a verb pluse a
noun-phrase or just a verb. Then you fill in the dictionary with the
words. This will recognize all the different combinations like:
the woman shoots
the woman shoots the man
a woman shoots the man
a man shoots the woman etc...
In English, this gets really hairy once you start adding other grammar
rules, but I'm hoping in Lojban it will be "natural" then it's just a
matter of building a dictionary. At that point you'd have a Logban
grammar checker.
Beyond that, I can't really promise AI, (still novice at Prolog) but I'm
pretty sure you could at least generate error messages that accurately
described the error, in the "computers own words".
Respectfully,
Luke
-----Original Message-----
From: lojban-beginners-bounce@lojban.org
[mailto:lojban-beginners-bounce@lojban.org] On Behalf Of Donald McLean
Sent: Monday, September 29, 2008 8:44 AM
To: lojban-beginners@lojban.org
Subject: [lojban-beginners] Re: Do you agree with this guy?
I've used quite a few languages in my career and studied quite a few
more but Prolog is not on either list.
The reality of Lojban is that it is still intended to be a human
language. While there are no spelling, pronunciation or grammar issues
to worry about, aren't there still issues with assumed or implied
content? Probably not unsolvable, but still issues that would require
a more sophisticated interface (AI).
Donald
On Mon, Sep 29, 2008 at 10:34 AM, Rostowfske, Luke J
<luke.j.rostowfske@lmco.com> wrote:
> I'm wondering if you wrote a prolog-lojban grammar if you could easily
> teach the computer to speak (lojban) the trick with programming
correct
> grammars they are so diverse, if you had only logical rules then it'd
be
> a simple thing to program all legal combinations of words, or how to
> express things.
>
> If you are into software and lojban, I'd like to know what you think
of
> Prolog. I'm learning prolog, I haven't started Lojban (one thing at a
> time) but I'm very interested in the potential.