Skip to content

Hunspell dictionary to deinflect all Japanese conjugated verbs to the dictionary form and suggest correct spelling.

Notifications You must be signed in to change notification settings

epistularum/hunspell-ja-deinflection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

hunspell-ja-deinflection

Hunspell dictionary to deinflect all Japanese conjugated verbs to the dictionary form and suggest correct spelling.

The conversion method is based on the next point to the word stem. For instance when faced with 書かない, you have to look up 書か. The advantage of this method is that it supports any kind of possible conjugation (slang, archaism, dialect,...) given that the stem word is included in the .dic file. For this purpose I have compiled every applicable entry from 広辞苑、大辞林、デジタル大辞泉、日本国語大辞典、旺文社国語辞典、明鏡国語辞典、新明解国語辞典 and JMDict. This also allows for spelling suggestions when a word is not found.

This makes for a yomichan like experience when coupled with the scan popup function. (Preferences > Scan Popup)

Installation

  1. Install goldendict (please use xiaoyifang's webengine fork if you plan to use epwing dictionaries, it includes a fix. See goldendict/goldendict#1551)
  2. Download both ja_JP.aff and ja_JP.dic.
  3. Place both files in a folder.
  4. Open goldendict, navigate to Edit > Dictionaries > Morphology.
  5. Change the directory path to the one you have set.

Examples:

De-Inflection:

simplescreenrecorder-2022-08-31_13.06.30-00.00.03.299-00.00.18.635.mp4

Spelling Suggestion:

image

About

Hunspell dictionary to deinflect all Japanese conjugated verbs to the dictionary form and suggest correct spelling.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published