Module: PragmaticSegmenter::Languages::Common::Numbers
- Defined in:
- lib/pragmatic_segmenter/languages/common/numbers.rb
Constant Summary collapse
- PeriodBeforeNumberRule =
Rubular: rubular.com/r/oNyxBOqbyy
Rule.new(/\.(?=\d)/, '∯')
- NumberAfterPeriodBeforeLetterRule =
Rubular: rubular.com/r/EMk5MpiUzt
Rule.new(/(?<=\d)\.(?=\S)/, '∯')
- NewLineNumberPeriodSpaceLetterRule =
Rubular: rubular.com/r/rf4l1HjtjG
Rule.new(/(?<=\r\d)\.(?=(\s\S)|\))/, '∯')
- StartLineNumberPeriodRule =
Rubular: rubular.com/r/HPa4sdc6b9
Rule.new(/(?<=^\d)\.(?=(\s\S)|\))/, '∯')
- StartLineTwoDigitNumberPeriodRule =
Rubular: rubular.com/r/NuvWnKleFl
Rule.new(/(?<=^\d\d)\.(?=(\s\S)|\))/, '∯')
- All =
[ PeriodBeforeNumberRule, NumberAfterPeriodBeforeLetterRule, NewLineNumberPeriodSpaceLetterRule, StartLineNumberPeriodRule, StartLineTwoDigitNumberPeriodRule ]