Skip to content

mijnap1/langswitch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LangSwitch

A Chrome extension that detects mistyped keyboard-layout input in text fields and suggests local conversion. Supports Korean, Chinese, and Japanese typing workflows and runs fully locally.

How It Works

Type naturally with your keyboard. LangSwitch detects when your input looks like a mistyped layout and shows a suggestion tooltip. You can apply the suggestion manually or enable auto-convert to have it apply on Space / Enter / Tab.

Languages

🇰🇷 Korean (Dubeolsik)

Type English keys as if your layout were Dubeolsik. LangSwitch composes the correct Hangul syllables and recognises common Korean slang (ㅋㅋ, ㅇㅋ, ㄱㅅ, etc.).

Korean

🇨🇳 Chinese (Pinyin)

Type pinyin without spaces or tone marks. Use v in place of ü (e.g. nv → 女, lv → 旅) just like standard Windows IME input.

Chinese

🇯🇵 Japanese (Romaji)

Type standard romaji. Doubled consonants automatically produce っ (e.g. katta → かった). Both Hepburn and Wāpuro styles are supported.

Japanese

Features

  • Suggestion tooltip with manual apply
  • Auto-convert on Space / Enter / Tab
  • Context modes Strict, Balanced, Aggressive
  • Korean slang mode (ㅋㅋ, ㅇㅋ, ㄱㅅ, ㄱㄱ, ...)
  • Per-site enable / disable rules
  • 10 tooltip themes with Light / Dark / Auto appearance modes

Privacy

All processing is local. No keystrokes, no content, and no data of any kind is sent to external servers.

Setup

  1. Go to chrome://extensions in Chrome
  2. Enable Developer mode
  3. Click Load unpacked and select the LangSwitch folder

Quick Test

  1. Load dev/test.html with the extension active
  2. Select a language in the popup
  3. Type a phrase from the reference table and press Space

Project Structure

LangSwitch/
├── manifest.json
├── assets/
│   ├── logo.png
│   ├── LangSwitch Logo.png
│   └── screenshots/
├── scripts/
│   ├── converter.js
│   └── content.js
├── ui/
│   ├── popup.html
│   ├── popup.css
│   └── popup.js
├── data/
│   ├── english-words.txt
│   ├── korean-dict.tsv
│   ├── chinese-dict.tsv
│   └── japanese-dict.tsv
└── dev/
    └── test.html

Permissions

Permission Reason
storage Save user settings
tabs + activeTab Read current domain for per-site toggle
Host access Detect and convert input on any page

Add a LICENSE file before release MIT is recommended.

About

Detect mistyped keyboard layout and suggest local conversion.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors