Module: PragmaticSegmenter::Languages::Danish::Numbers
- Defined in:
- lib/pragmatic_segmenter/languages/danish.rb
Overview
This handles the case where a dot is used to denote and ordinal (5. Juni)
Constant Summary collapse
- NumberPeriodSpaceRule =
Rubular: rubular.com/r/hZxoyQwKT1
Rule.new(/(?<=\s[0-9]|\s([1-9][0-9]))\.(?=\s)/, '∯')
- NegativeNumberPeriodSpaceRule =
Rubular: rubular.com/r/ityNMwdghj
Rule.new(/(?<=-[0-9]|-([1-9][0-9]))\.(?=\s)/, '∯')
- All =
[ Common::Numbers::All, NumberPeriodSpaceRule, NegativeNumberPeriodSpaceRule ]