class PragmaticSegmenter::Languages::Deutsch::Processor
Private Instance Methods
replace_numbers()
click to toggle source
# File lib/pragmatic_segmenter/languages/deutsch.rb, line 49 def replace_numbers Rule.apply @text, Numbers::All replace_period_in_deutsch_dates end
replace_period_in_deutsch_dates()
click to toggle source
# File lib/pragmatic_segmenter/languages/deutsch.rb, line 55 def replace_period_in_deutsch_dates MONTHS.each do |month| # Rubular: http://rubular.com/r/zlqgj7G5dA @text.gsub!(/(?<=\d)\.(?=\s*#{Regexp.escape(month)})/, '∯') end end