dict

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2018 License: MIT Imports: 5 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
	WhiteUninomial
	GreyUninomial
	BlackUninomial
	WhiteSpecies
	GreySpecies
	BlackSpecies
	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