Module: PragmaticSegmenter::Languages::Common::Numbers

Defined in:
lib/pragmatic_segmenter/languages/common/numbers.rb

Constant Summary collapse

PeriodBeforeNumberRule =
Rule.new(/\.(?=\d)/, '')
NumberAfterPeriodBeforeLetterRule =
Rule.new(/(?<=\d)\.(?=\S)/, '')
NewLineNumberPeriodSpaceLetterRule =
Rule.new(/(?<=\r\d)\.(?=(\s\S)|\))/, '')
StartLineNumberPeriodRule =
Rule.new(/(?<=^\d)\.(?=(\s\S)|\))/, '')
StartLineTwoDigitNumberPeriodRule =
Rule.new(/(?<=^\d\d)\.(?=(\s\S)|\))/, '')
All =
[
  PeriodBeforeNumberRule,
  NumberAfterPeriodBeforeLetterRule,
  NewLineNumberPeriodSpaceLetterRule,
  StartLineNumberPeriodRule,
  StartLineTwoDigitNumberPeriodRule
]