| Crates.io | arbitrator |
| lib.rs | arbitrator |
| version | 0.1.3 |
| created_at | 2021-08-12 18:15:42.727988+00 |
| updated_at | 2021-08-13 01:49:20.445253+00 |
| description | Format text based on a set of rules and regexes. |
| homepage | |
| repository | https://github.com/Open-Publishing-Foundation/tools/arbitrator |
| max_upload_size | |
| id | 435346 |
| size | 15,002 |
Format text based on a set of rules and regexes.
cargo install arbitrator
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!