Text Grammar Linter
This project is designed to scan through an input text file and output errors about its structure and typography.
It basically throws errors about
- Wrong capitalization at the start of a new line.
- Wrong use of the word 'i' in a sentence.
- Wrong spacing between words(just one space is required).
- Wrong spacing before(no-space) and after(2 spaces) punctuation marks.
- You must have 2 lines indentation at the start of text.
- Third line must be a title with a 10 space indentation with all words capitalized.
- Maximum of 4 paragraphs allowed.
- All paragraphs must start with a 2 space indentation and must have a one line indentation at the start and end.
- Maximum word count of 300 words.
Built With
Getting Started
To get a local copy up and running, apply the following instructions.
Prerequisites
- Ruby installed in local machine.
- RSpec should be installed on local computer.
Install
- Clone the repository to your machine via :
$ git clone https://github.com/wandji20/ruby-linters-capstone
-
gem install strscan
-
- Navigate to the project folder and paste a text in input/user1.txt
- Run bin/linters.rb to get results of fouls committed on the console.
- cd to spec folder and run rspec test_examples.rb to view test results.
👤 Author
🤝 Contributing
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Show your support
Give a ⭐️ if you like this project!