Kimtaro / ve

A linguistic framework that's easy to use.
MIT License
216 stars 25 forks source link

Include regex for Ve::PartOfSpeech.name to separate words with space #15

Closed vietqhoang closed 10 years ago

vietqhoang commented 10 years ago

For example

Ve::PartOfSpeech::ProperNoun.name => "proper noun"

With the current implementation the following yields

Ve::PartOfSpeech::ProperNoun.name => "propernoun"

I tried looking into the Ruby documentation for humanizing strings with uppercase, but didn't find any. Therefore, the use of ugly regex.

Kimtaro commented 10 years ago

Looks good to me! Thanks for contributing :D