Skip to content

an LLM-powered linguistic experiment that translates modern English words and phrases back to their Germanic etymological roots

Notifications You must be signed in to change notification settings

joncoded/panglish

Repository files navigation

Panglish

an LLM-powered dictionary/translation website using a specialized prompt template

panglish home page

Panglish is a linguistic experiment that translates modern English words and phrases back to their Germanic etymological roots (not to be confused with the current German language). By stripping away Latin, French, Greek (and most other) borrowings, we reveal the "pure" Germanic core of the English language.

English is a Germanic language that has borrowed heavily from Romance and other languages. Panglish imagines: what if English had developed without these influences?

The last two paragraphs would have looked like this:

Panglish is a speechlore try-out that tongue-shifts same-timely English words and word-rows back to their Germanic word-birth roots (not to be mixed-up with today's German language). By stripping away Latin, French and Greek borrowings, we show the "rooted" Germanic heart of the English tongue.
English is a Germanic tongue that has borrowed strongly from "Romance" and other tongues. Panglish thinks: what if English had grown without these borrowings?

panglish results page

Features

  • search bar to translate English to Panglish (20 word limit)
  • translation results screen with:
    • possible translation (powered by AI)
    • etymology (word origin genealogy)
    • alternative translations
  • about page
  • dark mode (for those kind of days and nights!)

Specifications

  • front-end frameworks: next.js and tailwind
  • large language model: llama-3.3-70b-versatile

Demo

Run the demo on panglish.joncoded.com or panglish.vercel.app if I forget to pay the bills

panglish home page panglish home page panglish home page

Setup (for developers)

clone repo

Run the following commands on your command line:

% git clone https://github.com/joncoded/panglish.git panglish && cd panglish
% npm install

.env file

Configure your .env.local file on the root folder (this must be done):

GROQ_API_KEY=your_groq_api_key

If you don't have this you can get it for free at:

  • groq
    • GROQ_API_KEY : create API key > copy and past an API key
      • you can later use the same API key for any LLM

runtime!

Finally, back in the command line, run the app on your localhost with:

npm run dev

The app will run on http://localhost:3000

(if port 3000 is already used, it will host the app on :3001 or on the next available port)

Contribute

Features

Make changes by following this procedure:

  • clone the repository as mentioned above
  • create a feature branch
    • git checkout -b feature/branch
  • make and commit your changes
    • git commit -m "what you changed"
  • push your changes
    • git push origin feature/branch
  • open pull request

Also, feel free to raise any issues!

Credits

  • Groq for LLMs
  • Claude (Sonnet) for helping me create this in one day (it's the idea behind the website, not the website itself, that I was trying to bring to life!)

Heritage

What Panglish looked like when it was a "kid":

panglish newborn

It had high hopes: had dreams of becoming a "blogger", but focused on being a translator, while changing its hair colour from blue to green!

About

an LLM-powered linguistic experiment that translates modern English words and phrases back to their Germanic etymological roots

Topics

Resources

Stars

Watchers

Forks