parser

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EtymDebugWriter io.Writer = io.Discard

Functions

func S

func S(elm *etree.Element) string

Types

type Entry

type Entry struct {
	Title   string    `json:"title"`
	Syll    string    `json:"syllable"`
	NumSyll int       `json:"num_syllable"`
	IPA     string    `json:"ipa"`
	SG      string    `json:"meaning"`
	Phr     string    `json:"phrases"`
	Phv     string    `json:"phrasal_verbs"`
	Drv     string    `json:"derivatives"`
	Etym    Etymology `json:"etymolgy"`
	Note    string    `json:"note"`

	FFWords []string `json:"ff_words"`
}

func ParseEntry

func ParseEntry(title string, body []byte) *Entry

type EtymChunk

type EtymChunk string

type Etymology

type Etymology []EtymChunk

type HG

type HG struct {
	HW      string
	SYL_TXT string
	PRX     string
	PR      string
	VG      string
	LG      string
	FG      string
}

Jump to

Keyboard shortcuts

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