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

refactor: start splitting pronouns out of nouns #731

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

hippietrail
Copy link
Contributor

As per #730 this is the first step, moving the current "noun" types, which actually combine nouns and pronouns, into "nominal" types, that being the umbrella term in grammar/linguistics that encompasses both nouns and pronouns.

Because of the use of templates to derive type and function names from other type names, I had to rename a lot more identifiers than expected.

The next step will be to move pronouns out into their own type, with a "person" (1st/2nd/3rd) property but without a "proper" property.

Then noun can also be moved out, keeping things that apply to both, such as "nominal phrase" inside but things that don't such as "compound noun" outside the "nominal" type and inside the "noun" type.

This will make it easier to differentiate linters that work only on pronouns or only one nouns from those that work on both.

@hippietrail hippietrail changed the title chore: start splitting pronouns out of nouns refactor: start splitting pronouns out of nouns Feb 20, 2025
feat: pronoun now its own token kind & word metadata
s = subject case for pronouns
o = object case for pronouns
f = 1st person for pronouns
n = 2nd person for pronouns
t = 3rd person for pronouns
c = comparative degree for adjectives
u = superlative degree for adjectives
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant