lib/pragmatic_segmenter/languages/deutsch.rb in pragmatic_segmenter-0.0.4 vs lib/pragmatic_segmenter/languages/deutsch.rb in pragmatic_segmenter-0.0.5
- old
+ new
@@ -27,10 +27,10 @@
# Rubular: http://rubular.com/r/ityNMwdghj
NegativeNumberPeriodSpaceRule = Rule.new(/(?<=-[0-9]|-([1-9][0-9]))\.(?=\s)/, '∯')
def replace
super
- @formatted_text.apply(NumberPeriodSpaceRule).apply(NegativeNumberPeriodSpaceRule)
+ @text.apply(NumberPeriodSpaceRule).apply(NegativeNumberPeriodSpaceRule)
end
end
class SingleLetterAbbreviation < PragmaticSegmenter::SingleLetterAbbreviation
# Rubular: http://rubular.com/r/B4X33QKIL8