in reply to Parsing english

Parsing natural languages isn't easy. Just think about the ways to parse:
Time flies like an arrow.
If you want to parse English, go get a linguistics degree at a University.

However, for a game you can get away with something else. Parsing simple sentences, which are often of the form:

VERB [OBJECT [OBJECT]]
Text based games have been around for over three decades, including Collossal Cave, Zork and thousands of muds. For many games, source is available, and mudlibs are available too. Granted, they are typically written in another language than Perl, but that shouldn't be a problem. The algorithms will remain the same, and they'll be much easier to implement in Perl than in C or Fortran.

Abigail

Replies are listed 'Best First'.
Re: Re: Parsing english
by EdwardG (Vicar) on Oct 07, 2003 at 11:40 UTC

    Time flies like an arrow?

    How about:   Fruit flies like a banana

    sorry

      Interesting example :)

      1) Fruit flies the way a banana flies. ('like' as conjunction)

      2) Fruit flies like (e.g. the taste of) a banana. ('like' as verb)