dict

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

package dict contains dictionaries for finding scientific names

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dictionary

type Dictionary struct {
	NotInUninomials   map[string]struct{}
	NotInSpecies      map[string]struct{}
	CommonWords       map[string]struct{}
	InAmbigGenera     map[string]struct{}
	InAmbigGeneraSp   map[string]struct{}
	InAmbigSpecies    map[string]struct{}
	InAmbigUninomials map[string]struct{}
	InGenera          map[string]struct{}
	InSpecies         map[string]struct{}
	InUninomials      map[string]struct{}
	Ranks             map[string]struct{}
}

Dictionary contains dictionaries used for detecting scientific names

func LoadDictionary

func LoadDictionary() *Dictionary

LoadDictionary contain most popular words in European languages.

type DictionaryType

type DictionaryType int

DictionaryType describes available dictionaries

const (
	NotSet DictionaryType = iota
	InGenus
	InAmbigGenus
	InAmbigGenusSp
	InUninomial
	InAmbigUninomial
	NotInUninomial
	InSpecies
	InAmbigSpecies
	NotInSpecies
	CommonWords
	Rank
	NotInDictionary
)

DictionaryType dictionaries

func (DictionaryType) String

func (d DictionaryType) String() string

Jump to

Keyboard shortcuts

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