Skip to content

Convert wordlist into a compact standalone .js or .lua source file with the embedded dictionary, which implements a simple spellchecker API #7

Description

@ssvb

It makes sense to use something like https://stevehanov.ca/blog/compressing-dictionaries-with-a-dawg as a compact data structure.

Also look at https://github.com/blevesearch/vellum (its vellum file format v1), https://github.com/morfologik/morfologik-stemming (its CFSA2 format) and https://www.grammalecte.net/ (its graphspell format) for inspiration or maybe even full binary compatibility.

The absolutely best compression is not necessary. A balanced approach favoring good performance and code simiplicity may be preferred over shaving off the last 10% from the data size at any cost.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions