<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Aashish H</title>
    <description>The latest articles on DEV Community by Aashish H (@aashishh15).</description>
    <link>https://dev.to/aashishh15</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4035997%2F1bd77709-f908-454d-9ba9-180bd18940cf.png</url>
      <title>DEV Community: Aashish H</title>
      <link>https://dev.to/aashishh15</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aashishh15"/>
    <language>en</language>
    <item>
      <title>How I accidentally built a local AI writing app</title>
      <dc:creator>Aashish H</dc:creator>
      <pubDate>Wed, 22 Jul 2026 15:42:57 +0000</pubDate>
      <link>https://dev.to/aashishh15/how-i-accidentally-built-a-local-ai-writing-app-1jcf</link>
      <guid>https://dev.to/aashishh15/how-i-accidentally-built-a-local-ai-writing-app-1jcf</guid>
      <description>&lt;p&gt;I never intended to create an AI platform. Really, it all started much simpler. It began with what felt like a tiny, but frustrating, scratch: I just needed a simple grammar and spellcheck that ran locally and didn't require sending my drafts to a cloud server or paying monthly.&lt;/p&gt;

&lt;p&gt;This wasn’t even my first rodeo. In fact, I'd already attempted and ditched this exact premise twice already.&lt;/p&gt;

&lt;p&gt;To be honest, my first two attempts at this were... pretty lacking:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Attempt 1: A barebones single-file Python script (Grammar Checker.py) that barely did more than basic string checks.&lt;/li&gt;
&lt;li&gt;Attempt 2: A lightweight grammar_checker.py script using TextBlob—better, but still extremely limited, brittle, and stuck inside a terminal harness.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;After dismissing the first early prototypes, I figured that I may as well give it one more shot. I managed to whip up a proper React + TipTap frontend, tied in a local LanguageTool engine and this time I had it working well for my offline needs.&lt;/p&gt;

&lt;p&gt;Having got a fast local pipeline running on my machine I also thought, why stop there? Text transformation is the obvious next level.&lt;/p&gt;

&lt;p&gt;What started as a modest grammar checker accidentally evolved into &lt;strong&gt;Lexicon&lt;/strong&gt;—a full-fledged, local-first writing assistant with 15 AI tools running entirely on-device via quantized local models.&lt;/p&gt;

&lt;p&gt;Here is what it does now, and the technical landmines I had to solve to ship it as a single native installer.&lt;/p&gt;




&lt;h2&gt;
  
  
  What It Does Now
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;100% Offline Grammar &amp;amp; Spellcheck:&lt;/strong&gt; Fast, rule-based checking powered by LanguageTool (no LLM latency or non-deterministic hallucinations for simple typos).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;15 On-Device AI Tools:&lt;/strong&gt; Rewrite, Concise, 9 distinct tone adjustments (Academic, Casual, Professional, etc.), Summaries, Key Points, Lists, and Tables—all running through a small quantized model (&lt;code&gt;llama.cpp&lt;/code&gt;) directly on your machine.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero Cloud Calls:&lt;/strong&gt; No accounts, no subscriptions, and zero text ever leaves your device.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ollama Auto-Detection:&lt;/strong&gt; If you already run an Ollama server locally, Lexicon auto-detects and hooks into it; otherwise, it uses its own bundled runtime.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Prompt Engineering for 1B–3B Local Models
&lt;/h2&gt;

&lt;p&gt;Small quantized local models (I'm using Qwen 2.5 GGUF quants in the 1B–3B parameter range) need much more explicit prompting than frontier models.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Strict Formatting Guarantees:&lt;/strong&gt; Without explicit instructions like &lt;code&gt;Output ONLY the transformed text. Do not include preamble, quotes, or introductory notes.&lt;/code&gt;, small models love to wrap outputs in polite chatter (&lt;em&gt;"Here is your rewritten sentence:"&lt;/em&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Behavioral vs. Adjective Prompting:&lt;/strong&gt; Simply swapping adjectives (&lt;code&gt;"Rewrite this to sound [Formal/Academic]"&lt;/code&gt;) causes tone outputs to blur together. Small models need concrete syntactic rules—like explicitly telling the model to expand contractions, shorten sentence length, or switch to passive voice.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Where It's At &amp;amp; Open Source
&lt;/h2&gt;

&lt;p&gt;Third time was finally the charm! Lexicon is open-source (MIT licensed) with installers available for Windows (&lt;code&gt;.exe&lt;/code&gt;) and macOS (&lt;code&gt;.dmg&lt;/code&gt; for Intel + Apple Silicon).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub Repository:&lt;/strong&gt; &lt;a href="https://github.com/AashishH15/Lexicon" rel="noopener noreferrer"&gt;github.com/AashishH15/Lexicon&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Website:&lt;/strong&gt; &lt;a href="https://lexicon-writer.pages.dev/" rel="noopener noreferrer"&gt;https://lexicon-writer.pages.dev/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'd love to hear feedback!&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>ai</category>
      <category>productivity</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
