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

Feature: Pluggable rule actions (e.g. noun/verb detection) #156

Open
andymed-jlp opened this issue Mar 10, 2019 · 2 comments
Open

Feature: Pluggable rule actions (e.g. noun/verb detection) #156

andymed-jlp opened this issue Mar 10, 2019 · 2 comments
Assignees

Comments

@andymed-jlp
Copy link

Detailed description

I would like to be able to easily check for the presence of nouns or verbs in paths. Clearly this is not possible to achieve via single regex!

http://www.desiquintans.com/downloads/nounlist/nounlist.txt
https://sketchengine.co.uk/wp-content/uploads/word-list/english/english-word-list-verbs.csv

Possible Implementation

Perhaps it would be suitable to have a rule to perform lookup against a list of words on local file store?

Context

Our standards at Waitrose state we should always use plurals for collections and we should only use nouns on paths. It would be useful to be able to pick these up as a linting rule rather than having to manually review each.

@MikeRalphson
Copy link
Contributor

I like the general idea, but I also would like the ability to implement this with a natural language processing library. Let me have a think about pluggable rule actions in general. Thanks for the suggestion!

@MikeRalphson MikeRalphson self-assigned this Mar 12, 2019
@andymed-jlp
Copy link
Author

Great idea. I'd not thought of using NLP, but I can see that would be more robust - I guess something like https://github.com/spencermountain/compromise perhaps? Looks like it's got verbs, nouns and plurals covered.

@MikeRalphson MikeRalphson changed the title Feature: Lookup rule-action Feature: Pluggable rule actions (e.g. noun/verb detection) Feb 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants