Documentation
¶
Overview ¶
Package sentence provides helpers for sentence-boundary detection in aggregated text.
Index ¶
Constants ¶
View Source
const DefaultSentenceEnd = ".!?"
DefaultSentenceEnd is the default set of runes that mark end of sentence.
Variables ¶
This section is empty.
Functions ¶
func MatchEndOfSentence ¶
MatchEndOfSentence reports whether s (after trim) ends with a sentence-ending rune. Sentence-ending runes are from endChars; if endChars is empty, DefaultSentenceEnd is used. This matches match_endofsentence behavior for aggregators.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.