Module: PragmaticSegmenter::Languages::Common::SingleLetterAbbreviationRules
- Defined in:
- lib/pragmatic_segmenter/languages/common/numbers.rb
Overview
This class searches for periods within an abbreviation and replaces the periods.
Constant Summary collapse
- SingleUpperCaseLetterAtStartOfLineRule =
Rubular: rubular.com/r/e3H6kwnr6H
Rule.new(/(?<=^[A-Z])\.(?=,?\s)/, '∯')
- SingleUpperCaseLetterRule =
Rubular: rubular.com/r/gitvf0YWH4
Rule.new(/(?<=\s[A-Z])\.(?=,?\s)/, '∯')
- All =
[ SingleUpperCaseLetterAtStartOfLineRule, SingleUpperCaseLetterRule ]