Skip to content

A simple web app built with Node.js that leverages the Google Gemini API to provide instant grammar and spelling corrections. ๐Ÿš€

Notifications You must be signed in to change notification settings

ayush2635/AI-Grammar-Corrector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

9 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

AI Grammar Corrector

Live Demo Node.js Express.js EJS

A simple yet powerful web application that corrects grammar and spelling mistakes in any given text using the Google Gemini API. This project is built with Node.js and Express, and features a clean, responsive user interface rendered with EJS.

Project Screenshot

AI Grammar Corrector Screenshot

Features

  • Instant Grammar Correction: Leverages the powerful Google Gemini API to provide accurate corrections for spelling and grammar.
  • Preserves Line Breaks: The AI is specifically instructed to process each line independently, maintaining the original structure of the input text.
  • Clean & Responsive UI: A simple, intuitive interface that works seamlessly on both desktop and mobile devices.
  • Professional Branding: Includes a custom logo and a comprehensive set of favicons for a polished user experience across all platforms and devices.
  • Well-Documented Code: The entire codebase is thoroughly commented for easy understanding and maintenance.

Tech Stack

  • Backend: Node.js, Express.js
  • Frontend: EJS (Embedded JavaScript), HTML5, CSS3
  • API: Google Gemini API
  • Deployment: Render

Installation and Setup

To run this project on your local machine, follow these steps:

  1. Clone the repository:

    git clone https://github.com/ayush2635/ai-grammar-corrector.git
    
  2. Navigate to the project directory:

    cd ai-grammar-corrector
    
  3. Install the dependencies:

    npm install
    
  4. Create your environment file:

    • Create a new file in the root of the project named .env.
    • Add your Google Gemini API key to this file:
      GEMINI_API_KEY=YOUR_API_KEY_HERE
      
    • You can get your free API key from Google AI Studio.
  5. Start the server:

    npm start
    

    The application will be running at http://localhost:3000.

Usage

  1. Navigate to the Live Demo or your local server.
  2. Enter the text you want to correct into the textarea.
  3. Click the "Correct Text" button.
  4. The corrected version will appear below, preserving the original line breaks.

About

A simple web app built with Node.js that leverages the Google Gemini API to provide instant grammar and spelling corrections. ๐Ÿš€

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published