Skip to content
Browse files

Fix syllable range exclude small a i u etc

  • Loading branch information...
1 parent cae144b commit ebbcb37ef2667a7ebf73cccbc98884319e51e614 @myokoym committed Oct 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mecab-syllable/syllable.rb
View
2 lib/mecab-syllable/syllable.rb
@@ -42,7 +42,7 @@ def split(text)
end
def select_syllable(kana)
- hiragana_to_katakana(kana).gsub(/[^ァ-モヤユヨ-ヴー]/, "").split(//)
+ hiragana_to_katakana(kana).gsub(/[^アイウエオカ-モヤユヨラ-ロワヲンヴー]/, "").split(//)
end
def hiragana_to_katakana(hiragana)

0 comments on commit ebbcb37

Please sign in to comment.
Something went wrong with that request. Please try again.