Skip to content

[not a bug?] MeCab can't be used for word splitting and pronunciation unless the language is named exactly "Japanese" #103

@alk0

Description

@alk0

Describe the bug

It is possible (and may be desirable) to create a duplicate copy of the same L2 (study) language - e.g. one Japanese-English pair with spaces and one with MeCab parsing (my case), or Japanese-English and Japanese-(other language) or whatever. The problem is - MeCab is available only when the name of the language is exactly "Japanese". For word splitting the option to select a method disappears the second the name is changed, for pronunciation it just doesn't work anymore. Maybe I'm doing something wrong, but this is how it looks to me.

To Reproduce

  1. Go to Languages, create a new "Japanese" language (or use an existing one)
  2. Change the name in Study Language "L2": field to "Japanese1" or whatever
  3. Selecting RegExp Word Characters: method becomes unavailable immediately; MeCab-generated pronunciation (the one for Romaniz.: field) stops working.

Expected behavior

MeCab is still available when the name of the language is changed.

Proposal for a fix

As a quick fix: maybe it would be the easiest to check if the language name starts with "Japanese" or contains it instead of equals to?

Metadata

Metadata

Assignees

No one assigned

    Labels

    uxUser Experience could be better

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions