Skip to content

Commit

Permalink
feat: print meaning of words if .json word file is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
Schuwi committed Sep 15, 2024
1 parent 33b8e28 commit b916a49
Show file tree
Hide file tree
Showing 4 changed files with 321 additions and 54 deletions.
122 changes: 115 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ edition = "2021"
[features]
dashu = [ "dep:dashu" ]
force-cross = ["gmp-mpfr-sys/force-cross"]
gzip = [ "dep:flate2" ]

[dependencies]
clap = { version = "4.1.8", features = ["derive"] }
Expand All @@ -16,6 +17,10 @@ rand = "0.8.5"
regex = "1.10.4"
dashu = { version = "0.4.2", features = ["rand"], optional = true }
unicode-normalization = "0.1.22"
itertools = "0.13.0"
flate2 = { version = "1.0.33", optional = true }
serde_json = "1.0.128"
serde = { version = "1.0.210", features = ["serde_derive"] }

[target.'cfg(any(target_arch = "x86", target_arch = "x86_64", target_arch = "aarch64"))'.dependencies]
rug = "1.26.1"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ WordOtter uses the following dependencies:

- [x] Make script to generate word list from Wiktionary dump user-friendly
- [ ] Add support for more languages in the word list generation script (help wanted)
- [ ] Print meaning of words if .json file is provided
- [x] Print meaning of words if .json file is provided
- [ ] Support compilation to WebAssembly for use in the browser
- [x] Replace `rug` with `dashu` for WebAssembly compatibility
- [ ] Refactor code to provide a programmatic API
Expand Down
Loading

0 comments on commit b916a49

Please sign in to comment.