Module: PragmaticSegmenter::Languages::Common::EllipsisRules
- Defined in:
- lib/pragmatic_segmenter/languages/common/ellipsis.rb
Overview
Constant Summary collapse
- ThreeConsecutiveRule =
Rubular: rubular.com/r/i60hCK81fz
Rule.new(/\.\.\.(?=\s+[A-Z])/, '☏.')
- FourConsecutiveRule =
Rubular: rubular.com/r/Hdqpd90owl
Rule.new(/(?<=\S)\.{3}(?=\.\s[A-Z])/, 'ƪ')
- ThreeSpaceRule =
Rubular: rubular.com/r/YBG1dIHTRu
Rule.new(/(\s\.){3}\s/, '♟')
- FourSpaceRule =
Rubular: rubular.com/r/2VvZ8wRbd8
Rule.new(/(?<=[a-z])(\.\s){3}\.(\z|$|\n)/, '♝')
- OtherThreePeriodRule =
Rule.new(/\.\.\./, 'ƪ')
- All =
[ ThreeSpaceRule, FourSpaceRule, FourConsecutiveRule, ThreeConsecutiveRule, OtherThreePeriodRule ]