class PragmaticSegmenter::Languages::Japanese::BetweenPunctuation
Constants
- BETWEEN_PARENS_JA_REGEX
Rubular: rubular.com/r/EjHcZn5ZSG
- BETWEEN_QUOTE_JA_REGEX
Rubular: rubular.com/r/GnjOmry5Z2
Private Instance Methods
sub_punctuation_between_parens_ja(txt)
click to toggle source
# File lib/pragmatic_segmenter/languages/japanese.rb, line 49 def sub_punctuation_between_parens_ja(txt) PunctuationReplacer.new( matches_array: txt.scan(BETWEEN_PARENS_JA_REGEX), text: txt ).replace end
sub_punctuation_between_quotes_and_parens(txt)
click to toggle source
Calls superclass method
PragmaticSegmenter::BetweenPunctuation#sub_punctuation_between_quotes_and_parens
# File lib/pragmatic_segmenter/languages/japanese.rb, line 36 def sub_punctuation_between_quotes_and_parens(txt) super sub_punctuation_between_parens_ja(txt) sub_punctuation_between_quotes_ja(txt) end
sub_punctuation_between_quotes_ja(txt)
click to toggle source
# File lib/pragmatic_segmenter/languages/japanese.rb, line 42 def sub_punctuation_between_quotes_ja(txt) PunctuationReplacer.new( matches_array: txt.scan(BETWEEN_QUOTE_JA_REGEX), text: txt ).replace end