Author Topic: [SOLVED] Parsing lone nouns  (Read 1194 times)

0 Members and 1 Guest are viewing this topic.

Offline Doan Sephim

[SOLVED] Parsing lone nouns
« on: February 02, 2024, 02:24:48 PM »
Does anyone know how to parse lone nouns without using a verb?

I want the player to be able to answer a question by just answering with a noun, but it gets caught up in a syntax error since it's not a complete command.

Thanks
« Last Edit: February 02, 2024, 02:57:16 PM by Doan Sephim »


Artificial Intelligence Competition

Offline Kawa

Re: Parsing lone nouns
« Reply #1 on: February 02, 2024, 02:52:17 PM »
It appears the answer may just be '/somenoun', considering how Rumplestiltskin is implemented in KQ1.

Offline Doan Sephim

Re: Parsing lone nouns
« Reply #2 on: February 02, 2024, 02:56:58 PM »
It appears the answer may just be '/somenoun', considering how Rumplestiltskin is implemented in KQ1.
Wow! Sometimes I feel SOOOOO dumb! That works easily. Thank you for the prompt answer.

Offline Kawa

Re: [SOLVED] Parsing lone nouns
« Reply #3 on: February 02, 2024, 03:05:50 PM »
I rabbitholed myself so hard before I remembered the damn gnome. I was neck deep into the LSL3 leak's grammar.txt, the actual black box for the parser, just to confirm that yes Detroit a noun phrase can be a valid verb phrase.

Also, try '/burger/fries<with'.

Offline Collector

Re: [SOLVED] Parsing lone nouns
« Reply #4 on: February 02, 2024, 06:29:55 PM »
Sometimes rabbit holes can be amusing.
KQII Remake Pic

Offline Kawa

Re: [SOLVED] Parsing lone nouns
« Reply #5 on: February 03, 2024, 06:02:53 AM »
Oh, it was.


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.035 seconds with 22 queries.