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

Introduce parts of speech #24

Closed
gvlasov opened this issue Jul 31, 2015 · 0 comments · Fixed by #168
Closed

Introduce parts of speech #24

gvlasov opened this issue Jul 31, 2015 · 0 comments · Fixed by #168
Assignees
Milestone

Comments

@gvlasov
Copy link
Owner

gvlasov commented Jul 31, 2015

Part of speech field should be added into the ANTLR grammar for words. Each lexeme should have one particular part of speech, for example "verb" or "noun".

@gvlasov gvlasov self-assigned this Jul 31, 2015
@gvlasov gvlasov added this to the 0.2 milestone Jul 31, 2015
@gvlasov gvlasov added the syntax label Aug 28, 2015
gvlasov pushed a commit that referenced this issue Aug 28, 2015
Added partOfSpeech rule
gvlasov pushed a commit that referenced this issue Aug 28, 2015
gvlasov pushed a commit that referenced this issue Aug 28, 2015
To allow obtaining its grammatical category.
gvlasov pushed a commit that referenced this issue Aug 28, 2015
Added partOfSpeechByName method similar to grammemeByName.
Made it unsafe (now throws exceptions) because there may be no grammeme/part of speech with given name.
gvlasov pushed a commit that referenced this issue Aug 28, 2015
Parts of speech are going to be obtained in a manner identical to how grammemes are obtained.
gvlasov pushed a commit that referenced this issue Aug 28, 2015
gvlasov pushed a commit that referenced this issue Aug 28, 2015
It will throw an exception if it couldn't obtain its grammemes.
gvlasov pushed a commit that referenced this issue Aug 28, 2015
gvlasov pushed a commit that referenced this issue Aug 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant