### ----------------------------------------------------
### -- Grammar::Common
### -- Licenses: Artistic-2.0
### -- Authors: Jeffrey Goff
### -- File: lib/Grammar/Common/Text.rakumod
### ----------------------------------------------------
unit role Grammar::Common::Text;

token sentence { <first-word> <.separators> <sub-sentence> <.stop>}

token stop { "." | "?" | "!" }

token sub-sentence { <words>* % <.separators> }
token separators { [","|";"|":" ]? \s+ }

token first-word { <:Lu> <[\w \- \' \.]>* }

token words { <[\w \- \']>+ }

# vim: expandtab shiftwidth=4


