parser

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllTestEntries

func GetAllTestEntries(testcasesFilePath string) (map[string]QueryResult, error)

Types

type Entry

type Entry struct {
	HyphenatedText string  `yaml:"hyphenatedText"`
	IPA            string  `yaml:"IPA"`
	Type           string  `yaml:"type"`
	GrammerNotes   string  `yaml:"grammerNotes"`
	ExtraInfo      string  `yaml:"extraInfo"`
	Senses         []Sense `yaml:"senses"`
}

type QueryResult

type QueryResult struct {
	Entries []Entry `yaml:"entries"`
}

func ParseEntry

func ParseEntry(htmlTextReader io.Reader) (*QueryResult, error)

type Sense

type Sense struct {
	SignPost  string     `yaml:"signpost"`
	Subsenses []SubSense `yaml:"subsenses"`
}

type Spellcheck

type Spellcheck struct {
	Suggestions []Suggestion
}

func ParseSpellcheck

func ParseSpellcheck(htmlTextReader io.Reader) (*Spellcheck, error)

type SubSense

type SubSense struct {
	Definition string `yaml:"definition"`
}

type Suggestion

type Suggestion struct {
	Text string
	Url  string
}

Jump to

Keyboard shortcuts

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