Documentation ¶
Overview ¶
Package natural helps parsing durations
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrLangNotSupported = errors.New("lang not supported")
ErrLangNotSupported is returned when the language is not supported
Functions ¶
Types ¶
type Corpus ¶
Corpus holds data about translating text to string
func PrefixedEn ¶
func PrefixedEn() Corpus
PrefixedEn returns a Prefixed corpus for the english language
func PrefixedFr ¶
func PrefixedFr() Corpus
PrefixedFr returns a Prefixed corpus for the french language
type PrefixedCorpus ¶
type PrefixedCorpus []prefix
PrefixedCorpus tries to use the beginning of words to match them
func (PrefixedCorpus) Symbols ¶
func (c PrefixedCorpus) Symbols(str string) ([]interface{}, error)
Symbols implements the corpus interface
Click to show internal directories.
Click to hide internal directories.