dict

package
v0.0.0-...-49a0fbc Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Verb      = wnram.Verb
	Adjective = wnram.Adjective
	Adverb    = wnram.Adverb
	Noun      = wnram.Noun
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Dict

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

Dict implements a WordNet based English dictionary services.

func New

func New(o Opt) *Dict

New returns a new instance of the WordNet Dictionary service.

func (*Dict) Dump

func (d *Dict) Dump() ([]byte, error)

Dump is not implemented in this package.

func (*Dict) Query

func (d *Dict) Query(q string) ([]string, error)

Query queries the WordNet dictionary for an English word.

type Opt

type Opt struct {
	WordNetPath string
	MaxResults  int
}

Opt represents the external options/config required by this service.

Jump to

Keyboard shortcuts

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