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 =
Rule.new(/(?<=\s[0-9]|\s([1-9][0-9]))\.(?=\s)/, '')
NegativeNumberPeriodSpaceRule =
Rule.new(/(?<=-[0-9]|-([1-9][0-9]))\.(?=\s)/, '')
All =
[
  Common::Numbers::All,
  NumberPeriodSpaceRule,
  NegativeNumberPeriodSpaceRule
]