LocalGrammerly: An offline grammar assistant based on Google Chrome Built-in AI or Google Gemini Nano, designed to help you write better anytime, anywhere.

🚀 Inspiration

I built LocalGrammerly because I wanted a grammar assistant that works without needing internet. Most grammar tools require you to be online and sometimes cost money, which can be frustrating if you're worried about privacy or have limited resources.

I wanted to create something that:

  • Works offline so you can use it anywhere, anytime.
  • Keeps your data private by processing everything on your computer.
  • Is simple and easy to use right in your browser.
  • Open Source: Freeware for everyone to use and contribute to.

🛠️ What It Does

LocalGrammerly helps improve your writing with these features:

  1. Grammar Correction (still in progress):
    Detects grammar mistakes and suggests corrections.

  2. SummarizeOnHighlight:
    Highlight any text, and it gives you a quick summary. Perfect for long articles or notes.

  3. LocalPromptAI (added last-minute):
    A simple UI to interact with a locally running AI, providing writing prompts and suggestions without relying on external servers.

  4. Autocomplete (planned):
    Will suggest words as you type to help you write faster.

  5. WritingDaemon (planned):
    Will provide tips to improve your writing style and make it more polished.


🧩 How We Built It

Frontend (User Interface)

I built the frontend using:

  • HTML to structure the content.
  • CSS to style it and make it visually appealing.
  • JavaScript to handle user interactions.

Backend (How It Works)

The backend is designed to work offline and was built with:

  • JavaScript for logic, grammar correction, and text summarization.
  • Chrome Extension to integrate the tool directly into the browser.
  • Google Chrome Built-in AI APIs for offline grammar correction and summarization.

🌟 Challenges We Ran Into

  1. Started Late:
    I joined the hackathon at the end of November because I was busy with my pre-final exams.
    I found out about this hackathon through YouTube (thanks to @fireship.io), and this is my first hackathon!

  2. Balancing Exams and Project:
    It was tough to work on the project while studying for my exams. I had to stop on December 2nd, 2024, to focus on my studies.

  3. Incomplete Features:
    I couldn't complete features like Autocomplete and WritingDaemon before the deadline.


🏆 Accomplishments That I'm Proud Of

  • Created a working offline grammar checker in a short time.
  • Successfully added the SummarizeOnHighlight feature, which is super helpful.
  • Managed to balance both the hackathon and my exam preparation.

📚 What We Learned

  • Frontend Development: Improved my skills in HTML, CSS, and JavaScript.
  • Chrome Extensions: Learned how to build and run extensions directly in Google Chrome.
  • Time Management: Balancing coding with exam preparation was a valuable learning experience.

🚀 What's Next for LocalGrammerly

After my exams, I plan to:

  • Complete the Grammar Correction feature.
  • Add Autocomplete to improve writing speed.
  • Finish the WritingDaemon to offer personalized writing tips.
  • Optimize the tool for better performance and accuracy.

Built With

Share this project:

Updates