Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-word parsing #7

Merged
merged 3 commits into from
Apr 30, 2021
Merged

Multi-word parsing #7

merged 3 commits into from
Apr 30, 2021

Conversation

MikkelPaulson
Copy link
Collaborator

Implements multi-word parsing of input commands. For now, this is implemented in a relatively naive way where CamelCase words derived from the word list are recognized in both hyphenated and space-separated forms.

Removes parsing logic for proper nouns. This should probably be context-sensitive (ie. don't interpret input as a proper noun unless I have that noun in my database), isn't really used yet, and could definitely be better implemented using the new multi-word parser.

Add alternative where CamelCase words will now be recognized as both
kebab-case and space case (is that a thing?). Conversion to string still
uses kebab-case always.
For the time being, all of the bespoke logic for proper nouns is just
adding unnecessary complexity. Scrapped so that it can be rewritten with
better context sensitivity in the future.
@MikkelPaulson MikkelPaulson mentioned this pull request Apr 30, 2021
5 tasks
Update command parser to support the word parser consuming multiple
words at a time. The big-O complexity suffers for it, but how long is a
single input likely to be really?
@MikkelPaulson MikkelPaulson merged commit 5854925 into main Apr 30, 2021
@MikkelPaulson MikkelPaulson deleted the multi-word-parsing branch April 30, 2021 21:16
@MikkelPaulson MikkelPaulson added this to Done in Core May 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Core
Done
Development

Successfully merging this pull request may close these issues.

None yet

1 participant