class PragmaticSegmenter::Languages::Deutsch::BetweenPunctuation

Private Instance Methods

btwn_dbl_quote(txt) click to toggle source
# File lib/pragmatic_segmenter/languages/deutsch.rb, line 95
def btwn_dbl_quote(txt)
  if txt.include?('„')
    btwn_dbl_quote = txt.scan(BETWEEN_DOUBLE_QUOTES_DE_REGEX)
    txt.scan(SPLIT_DOUBLE_QUOTES_DE_REGEX).each do |q|
      btwn_dbl_quote << q
    end
  elsif txt.include?(',,')
    btwn_dbl_quote = txt.scan(BETWEEN_UNCONVENTIONAL_DOUBLE_QUOTE_DE_REGEX)
  end
  btwn_dbl_quote
end