minivan / middleman-spellcheck

Run a spell checking job through aspell every time you build with middleman.
MIT License
13 stars 10 forks source link

Handling "word-alike": dashes #22

Open wkoszek opened 8 years ago

wkoszek commented 8 years ago

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

zealot128 commented 8 years ago

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.