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

Handling "word-alike": dashes #22

Open
wkoszek opened this issue Nov 13, 2015 · 1 comment
Open

Handling "word-alike": dashes #22

wkoszek opened this issue Nov 13, 2015 · 1 comment

Comments

@wkoszek
Copy link
Contributor

wkoszek commented Nov 13, 2015

Seems like we're splitting words such as green-yellow or T-rex. I wonder if there's a good solution to this.

@zealot128
Copy link
Contributor

Same as your other issue, that is related to the splitting regex:

https://github.com/minivan/middleman-spellcheck/blob/master/lib/middleman-spellcheck/spellchecker.rb#L79

We could try to include the dash in the list of allowed word characters. Maybe only need to do some preprocesssing to remove it at the beginning and end, so fragments like "-word" or "word-" (happens a lot e.g. in German language) are processed correctly.

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