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

#1284 in Text processing

GPL-3.0 license

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

~6–8.5MB
~148K SLoC