Crates.io | wordshk_tools |
lib.rs | wordshk_tools |
version | 3.16.0-beta.9 |
source | src |
created_at | 2021-12-20 02:13:38.122499 |
updated_at | 2023-08-27 19:55:16.109445 |
description | A combination of parsers and other tools for words.hk (粵典) |
homepage | |
repository | https://github.com/AlienKevin/wordshk-tools |
max_upload_size | |
id | 500560 |
size | 22,449,955 |
A combination of tools for words.hk (粵典).
/// Parse the whole words.hk CSV database into a [Dict]
pub fn parse_dict() -> Result<Dict, Box<dyn Error>>
Located at /src/lib.rs
Parses all entries marked with OK and store the results as a list of entries. This parser is the very core of this library because its output is used by other functions like to_apple_dict
.
To boost efficiency, no regular expressions and backtracking are used. It is powered by a library called lip (written by myself) that provides
flexible parser combinators and supports friendly error messages.
examples/parse_dict
for more detailsexamples/export_apple_dict
for more detailsexamples/benchmark_search
for more detailsThe full up-to-date CSV database of words.hk dictionary can be downloaded from words.hk. You can request access to the CSV using this link: https://words.hk/faiman/request_data/
MIT