synonyms

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter struct {
	// contains filtered or unexported fields
}

Filter is the data structure of a synonyms filter. Use NewFilter to create.

func NewFilter

func NewFilter(mappings map[string]string, ignoreCase bool, ignoreRunes []rune) (*Filter, error)

NewFilter creates a new synonyms Filter

func (*Filter) Decl added in v0.9.6

func (f *Filter) Decl() string

Decl returns a Go source declaration of the Filter

func (*Filter) Filter added in v0.9.6

func (f *Filter) Filter(incoming *jargon.Tokens) *jargon.Tokens

Filter replaces tokens with their canonical terms, based on Stack Overflow tags & synonyms

func (*Filter) String added in v0.9.6

func (f *Filter) String() string

String returns a Go source declaration of the Filter

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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