Exclude prepositions during tokenization #510
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
java
question
refactor
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
agony-forge/agonyforge#510
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The tokenizer should just strip out "the" and the most common prepositions. Example:
GET THE DAGGER FROM THE BACKPACK -> GET DAGGER BACKPACK
PUT THE DAGGER IN THE BARREL -> PUT DAGGER BARREL
KILL THE GOBLIN -> KILL GOBLIN
This way the parsing is much more flexible for people who speak English but aren't familiar with the stunted mini-English used by traditional MUD commands.
It needs to not do this for syntaxes with QUOTED_WORDS though:
SAY I went to the store -> SAY "I went store"