class PragmaticSegmenter::Languages::Bulgarian::AbbreviationReplacer

Constants

SENTENCE_STARTERS

Private Instance Methods

replace_period_of_abbr(txt, abbr) click to toggle source
# File lib/pragmatic_segmenter/languages/bulgarian.rb, line 18
def replace_period_of_abbr(txt, abbr)
  txt.gsub!(/(?<=\s#{abbr.strip})\.|(?<=^#{abbr.strip})\./, '∯')
  txt
end