natlang

package module
v0.0.0-...-d16e723 Latest Latest
Warning

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

Go to latest
Published: May 10, 2015 License: MIT Imports: 1 Imported by: 1

README

natural-language

Reusable Golang library to provide text processing functions

Status

Under development

Programming notes

See abbreviation for a list of abbreviations used.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllWordRegexp = regexp.MustCompile(`\pL+(\pP+\pL+)*`)
View Source
var WordRegexp = regexp.MustCompile(`\pL+('\pL+)*`)

Functions

func MatchAllWords

func MatchAllWords(text string) []string

MatchAllWords matches the words in a text, including any embedded apostrophes. It also matches wordlike expressions that contain nonword characters, such as email or web addresses.

func MatchWords

func MatchWords(text string) []string

MatchWords matches the words in a text, including any embedded apostrophes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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