A text completion, editing, and auto-correction tool written in Go.
This project is a command-line tool that processes a text file and applies specific formatting rules, including:
- Hex/Bin Conversion: Converts
(hex)and(bin)tags to decimal. - Casing: Handles
(up),(low), and(cap)for single or multiple words (e.g.,(up, 2)). - Punctuation: Fixes spacing for marks like
. , ! ? : ;and grouped punctuation like.... - Grammar: Automatically corrects "a" to "an" before vowels or "h".
- Apostrophes: Properly formats text enclosed in single quotes.
- Learn the Go file system API (
os). - Master string and number manipulation.
- Practice unit testing and good coding standards.
To run the tool, use the following command in your terminal:
go run . sample.txt result.txt