Skip to content

add option to use mecab parser#934

Merged
killergerbah merged 3 commits intomainfrom
yomitan-mecab
Mar 12, 2026
Merged

add option to use mecab parser#934
killergerbah merged 3 commits intomainfrom
yomitan-mecab

Conversation

@ShanaryS
Copy link
Copy Markdown
Collaborator

fixes #933

Added a new Yomitan option to choose between the scanning-parser and mecab from a dropdown. When mecab is selected we will verify if the user has it correctly installed by sending a test tokenize string and inspecting the response. This is now possible is mecab is Japanese only.

We should wait for yomidevs/yomitan-mecab-installer#12 to be merged otherwise users may have to install twice.

@ShanaryS ShanaryS self-assigned this Mar 10, 2026
@ShanaryS ShanaryS added the enhancement New feature or request label Mar 10, 2026
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Mar 10, 2026

Deploying asbplayer with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9549056
Status: ✅  Deploy successful!
Preview URL: https://89fdf063.asbplayer.pages.dev
Branch Preview URL: https://yomitan-mecab.asbplayer.pages.dev

View logs

@ShanaryS ShanaryS force-pushed the yomitan-mecab branch 2 times, most recently from c8a45db to 3150540 Compare March 10, 2026 15:43
@ShanaryS
Copy link
Copy Markdown
Collaborator Author

I added more checks and instructions in case a user has an outdated installer or a dictionary that doesn't support the lemma from /tokenize (will fallback to /termEntries which is much slower but accuracy should be the same).

Prefer newer UniDic versions for forward comaptability. Currently Yomitan only provides unidic-mecab-translate as a default which will probably be what most users use.

@ShanaryS ShanaryS force-pushed the yomitan-mecab branch 2 times, most recently from 37aaa65 to 0ec4fa9 Compare March 10, 2026 16:03
Copy link
Copy Markdown
Owner

@killergerbah killergerbah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merging now

@killergerbah killergerbah merged commit ff25a73 into main Mar 12, 2026
2 checks passed
@killergerbah killergerbah deleted the yomitan-mecab branch March 12, 2026 13:20
@killergerbah killergerbah added this to the Extension v1.15.0 milestone Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for mecab parser via the new parser option in yomitan’s api

2 participants