Module: PragmaticSegmenter::Languages::Common::ExclamationPointRules

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

Constant Summary collapse

InQuotationRule =
Rule.new(/\!(?=(\'|\"))/, '&ᓴ&')
BeforeCommaMidSentenceRule =
Rule.new(/\!(?=\,\s[a-z])/, '&ᓴ&')
MidSentenceRule =
Rule.new(/\!(?=\s[a-z])/, '&ᓴ&')
All =
[ InQuotationRule, BeforeCommaMidSentenceRule, MidSentenceRule ]