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

Handle common prefixes/suffixes (when predefined word does not exist) #21

Closed
fridgepoet opened this issue Sep 27, 2020 · 3 comments
Closed

Comments

@fridgepoet
Copy link

Is your feature request related to a problem? Please describe.
Related to #13

Describe the solution you'd like
Add list of common prefixes and suffixes and their abbreviations (e.g. -ible -> bl)
When predefined word does not exist, attempt to remove common prefix or suffix (e.g. in-access-ible -> access-ible)
Look up remaining word again
Repeat prefix/suffix removal as many times as necessary (e.g. access-ible -> access)
Concatenate prefix abbreviation, word abbreviation, and suffix abbreviation (e.g. in-access-ible -> in-acc-bl)

cc @FungusHumungus

@dnnrly
Copy link
Owner

dnnrly commented Sep 29, 2020

This is a fantastic idea!

There's another PR in progress that has the concept of 'strategy which selects an algorithm for shortening strings. I might see if I can get it moving along.

I think this would be a valuable addition.

@dnnrly
Copy link
Owner

dnnrly commented Oct 1, 2020

Hi, I merge a change that allows users to select the strategy for abbreviations words. If you wanted to have a go at tackling this issue then it might be a little easier now.

@fridgepoet
Copy link
Author

Thanks so much! @FungusHumungus and I will be working on this together. We're excited!

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

No branches or pull requests

2 participants