- Noreg
- https://valhrafnaz.gay
-
the owner of this wretched abode
- Joined on
2024-07-03
Block a user
text-correction (0.1.1)
Installation
[registry]
default = "gitea"
[registries.gitea]
index = "sparse+ " # Sparse index
# index = " " # Git
[net]
git-fetch-with-cli = true
cargo add text-correction@0.1.1
About this package
Small CLI tool that corrects a given input file based on a word list given as input.
Transcription Corrector
This small CLI programm takes an input .txt file, a word list (each line only featuring one word), and the name of an output file and corrects the input based on the closest word match via Levenshtein and Sørensen-Dice distance.
Usage
For whole files:
$ text-correction correct-file -i input.txt -l wordlist.txt -o output.txt
For individual words:
$ text-correction correct-word -i exampleword
Written in Rust, using the regex
, fuzzt
, and clap
crates.
Licensed under GPLv3-or-later.
Dependencies
ID | Version |
---|---|
clap | ^4.5.41 |
fuzzt | ^0.3.1 |
levenshtein | ^1.0.5 |
log | ^0.4.27 |
num_cpus | ^1.17.0 |
rayon | ^1.10.0 |
regex | ^1.11.1 |
spinners | ^4.1.1 |
Keywords
text-processing
Details
2025-07-16 03:08:55 +02:00
Assets (1)
Versions (1)
View all
Cargo
2
nihil carcosa <nihil@valhrafnaz.gay>
11 MiB
text-correction-0.1.1.crate
11 MiB
0.1.1
2025-07-16