sentence

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

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

func MatchEndOfSentence(s string, endChars string) bool

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL