dict

package
Version: v0.15.3 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 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 {
	BlackUninomials map[string]struct{}
	BlackSpecies    map[string]struct{}
	CommonWords     map[string]struct{}
	GreyGenera      map[string]struct{}
	GreyGeneraSp    map[string]struct{}
	GreySpecies     map[string]struct{}
	GreyUninomials  map[string]struct{}
	WhiteGenera     map[string]struct{}
	WhiteSpecies    map[string]struct{}
	WhiteUninomials 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
	WhiteGenus
	GreyGenus
	GreyGenusSp
	WhiteUninomial
	GreyUninomial
	BlackUninomial
	WhiteSpecies
	GreySpecies
	BlackSpecies
	CommonWords
	Rank
	NotInDictionary
)

DictionaryType dictionaries

func (DictionaryType) String

func (d DictionaryType) String() string

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL