logoalt Hacker News

skylurklast Wednesday at 10:06 AM1 replyview on HN

Yep, some domains have no hard rules at all.

Time flies like an arrow; fruit flies like a banana.


Replies

immibislast Wednesday at 9:41 PM

It's completely possible to write a parser that outputs every possible parse of "time flies like an arrow", and then try interpreting each one and discard ones that don't make sense according to some downstream rules (unknown noun phrase: "time fly").

I did this for a text adventure parser, but it didn't work well because there are exponentially ways to group the words in a sentence like "put the ball on the bucket on the chair on the table on the floor"

show 1 reply