fulldict

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package fulldict embeds the gse Chinese dictionary (simplified + traditional, ~+31MB binary) so CJK word segmentation works with zero downloads and zero build flags. Import for side effects:

import _ "github.com/ProjAnvil/LadyM/storage/fulldict"

This is the import-path alternative to building with -tags fulldict: the dictionary data is linked in only when this package is imported, so binaries (including LadyM's own default builds) that do not import it stay small. Importing both this package and the build tag is harmless — they register the same dictionary.

A downloaded file dictionary (~/.ladyM/dict) still takes precedence over this embedded one, so dictionary upgrades remain possible without a rebuild.

Jump to

Keyboard shortcuts

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