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

feat: add harper-cli forms and just getforms #615

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hippietrail
Copy link
Contributor

These take an annotated word in the form of a hunspell entry, apply all the affix rules for the annotations, and output all the resulting word forms:

% just getforms workspace/1MS

workspace
workspace's
workspaces

% target/debug/harper-cli forms absorber/1MS
absorbers
absorber
absorber's

This implements my feature request in #606
A version of this can be added to an expanded just addnoun so the user can confirm that no unexpected forms will be allowed and no legitimate forms will be flagged, before they add the word.

These take a hunspell entry and apply all the affix rules for the annotations supplied and output all the resulting word forms:

```
% just getforms workspace/1MS

workspace
workspace's
workspaces

% target/debug/harper-cli forms absorber/1MS
absorbers
absorber
absorber's
```
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