Class: PragmaticSegmenter::Languages::Deutsch::AbbreviationReplacer
- Inherits:
-
AbbreviationReplacer
- Object
- AbbreviationReplacer
- PragmaticSegmenter::Languages::Deutsch::AbbreviationReplacer
- Defined in:
- lib/pragmatic_segmenter/languages/deutsch.rb
Constant Summary
Constants inherited from AbbreviationReplacer
AbbreviationReplacer::SENTENCE_STARTERS
Instance Attribute Summary
Attributes inherited from AbbreviationReplacer
Instance Method Summary collapse
Methods inherited from AbbreviationReplacer
Constructor Details
This class inherits a constructor from PragmaticSegmenter::AbbreviationReplacer
Instance Method Details
#replace ⇒ Object
62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/pragmatic_segmenter/languages/deutsch.rb', line 62 def replace @text = text.apply( @language::PossessiveAbbreviationRule, @language::SingleLetterAbbreviationRules::All, SingleLowerCaseLetterRule, SingleLowerCaseLetterAtStartOfLineRule) @text = search_for_abbreviations_in_string(@text) @text = replace_multi_period_abbreviations(@text) @text.apply(Languages::Common::AmPmRules::All) replace_abbreviation_as_sentence_boundary(@text) end |