class PragmaticSegmenter::Languages::Persian::AbbreviationReplacer
Constants
- SENTENCE_STARTERS
Private Instance Methods
scan_for_replacements(txt, am, index, character_array)
click to toggle source
# File lib/pragmatic_segmenter/languages/persian.rb, line 19 def scan_for_replacements(txt, am, index, character_array) txt.gsub!(/(?<=#{am})\./, '∯') txt end