Welcome to the Text Completion and Auto-Correction Tool! This project is designed to help users modify and correct text files efficiently. Whether it's completing words, converting numbers, or fixing punctuation, this tool has all the features you need for precise text editing.
This project builds on functions from a previous repository to create a versatile text editing tool. The key objectives include:
- Leverage existing Go functions for text manipulation
- Develop a system for text completion, editing, and auto-correction
- Implement features like converting hex and binary numbers, adjusting letter cases, and correcting punctuation
- Maintain clean, testable code that adheres to best practices
Built with Go, this project emphasizes efficiency, simplicity, and clean coding practices. Unit testing is encouraged to ensure functionality and reliability.
- Hexadecimal and binary conversion (e.g., converting
42 (hex)
or10 (bin)
into decimal values) - Letter case adjustments (uppercase, lowercase, title case)
- Punctuation corrections (fixing misplaced commas, ellipses, and more)
To use the tool, follow these steps:
-
Clone the repository to your local machine:
git clone https://github.com/your-username/repository-name.git
-
Navigate to the project directory:
cd repository-name
-
Run the tool with the appropriate arguments:
go run . input_file.txt output_file.txt
-
The modified text will be saved to the specified output file.
Here are a few examples demonstrating the tool's features:
$ cat input.txt
Simply add 42 (hex) and 10 (bin) and you will see the result is 68.
$ go run . input.txt output.txt
$ cat output.txt
Simply add 66 and 2 and you will see the result is 68.
$ cat input.txt
It was the best of times, it was the worst of times (up) , it was the age of wisdom...
$ go run . input.txt output.txt
$ cat output.txt
It was the best of times, it was the worst of TIMES, it was the age of wisdom...
$ cat input.txt
Punctuation tests are ... kinda boring ,don't you think !?
$ go run . input.txt output.txt
$ cat output.txt
Punctuation tests are... kinda boring, don't you think!?
Contributions are welcome! Feel free to explore the codebase, submit improvements, or report any issues. Follow these steps to contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes and commit (
git commit -m 'Add new feature'
). - Push to the branch (
git push origin feature-branch
). - Submit a pull request.
This tool simplifies the process of text editing and correction, making it a valuable asset for developers, writers, or anyone who works with text. Dive into the codebase, contribute to its development, or use it to streamline your workflow.
Happy editing!