class PragmaticSegmenter::Languages::Arabic::AbbreviationReplacer

Constants

SENTENCE_STARTERS

Private Instance Methods

scan_for_replacements(txt, am, index, character_array) click to toggle source
# File lib/pragmatic_segmenter/languages/arabic.rb, line 27
def scan_for_replacements(txt, am, index, character_array)
  txt.gsub!(/(?<=#{am})\./, '∯')
  txt
end