4 releases
0.1.3 | Aug 13, 2021 |
---|---|
0.1.2 | Aug 12, 2021 |
0.1.1 | Aug 12, 2021 |
0.1.0 | Aug 12, 2021 |
#1270 in Text processing
7KB
121 lines
Arbitrator
Format text based on a set of rules and regexes.
Installation
cargo install arbitrator
Usage
example.txt
This is one of my paintings.
Wow thats really cool.
Thank you!
example.json
{
"paintings": "cool {} nice",
"cool": "{} {}"
}
Example command:
arbitrator --input example.txt --rules example.json --output output.txt
output.txt
cool This is one of my paintings. nice
Wow thats really cool. Thank you!
Dependencies
~5–7MB
~126K SLoC