dictionary

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2020 License: Apache-2.0 Imports: 10 Imported by: 5

Documentation

Overview

Chinese-English dictionary database functions

Package for looking up words and multiword expressions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindWordsByEnglish

func FindWordsByEnglish(query string) ([]dicttypes.WordSense, error)

Returns the word senses with English approximate or Pinyin exact match

func LoadDict

func LoadDict() (map[string]dicttypes.Word, error)

Loads all words from the database

Types

type Results

type Results struct {
	Words []dicttypes.Word
}

Encapsulates term lookup recults

func LookupSubstr

func LookupSubstr(query, topic_en, subtopic_en string) (*Results, error)

Lookup a term based on a substring and a topic

Jump to

Keyboard shortcuts

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