Skip to content

An English Language linters checker. It checks for wrong use of paragraph indentation, heading indentation, line, indentation, and punctuation marks.

Notifications You must be signed in to change notification settings

wandji20/Grammar-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

screenshot

Built With

  • Ruby
  • Rspec

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

  1. Clone the repository to your machine via :
$ git clone https://github.com/wandji20/ruby-linters-capstone
  1. 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!

About

An English Language linters checker. It checks for wrong use of paragraph indentation, heading indentation, line, indentation, and punctuation marks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages