-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend support for irregular inflections of suru-verbs #2038
Conversation
@SaltfishAmi Could you help me with a good Chinese translation for |
001270c
to
8b496c3
Compare
Thanks for doing this!
I guess that makes sense. I don't suppose you have any examples where it gets confused? Also, I'm curious about the What do you think? |
Thank you for the review!
What I had in mind are cases where both a す and する entry exist, such as 会す [えす] and 会する [かいする]. When matching an inflected form, you would consistently get both results, creating unnecessary noise.
The vz class refers to zuru verbs, which are basically rendaku-ed suru verbs. Modern じる-verbs, such as 感じる, evolved from suru verbs (感する) to zuru verbs (感ずる), and eventually to ichidan verbs (感じる). Some forms of zuru verbs, like 感ぜられる, are still used in modern Japanese, often to evoke a classical style. Maybe, from a modern perspective, we can think of ずる-verbs as an alternative inflection pattern for じる-verbs.
Zuru verbs are basically just special class suru verbs, so they are included in the test cases for these. There is a test for every form of vz class verbs that is now being deinflected under the // ずる
['信ずる', '信ぜぬ', [Reason.Irregular, Reason.Negative]],
['信ずる', '信ぜず', [Reason.Irregular, Reason.Zu]],
['信ずる', '信ぜさせる', [Reason.Irregular, Reason.Causative]],
['信ずる', '信ぜられる', [Reason.Irregular, Reason.PotentialOrPassive]],
['信ずる', '信ずれば', [Reason.Irregular, Reason.Ba]],
['信ずる', '信ぜよ', [Reason.Irregular, Reason.Imperative]], The block is tested by the following two cases, which are the reason why the block was introduced in the first place: ['発する', '発せさせる', [Reason.Irregular, Reason.Causative]],
['発する', '発せられる', [Reason.Irregular, Reason.PotentialOrPassive]], If the block wasn’t functioning correctly, the reason chain would always include an additional ['せる', 'する', Type.IchidanVerb, Type.SpecialSuruVerb, [Reason.Irregular, Reason.Potential]], rule, causing the test to fail. Should this be made more explicit? |
…e and Causative This is an issue when handling irregular forms like 罰せられる, where the structure could be misinterpreted as 'irregular < potential < potential or passive' instead of the correct 'irregular < potential or passive'.
These were used in classical Japanese and inflect according to the classical verb す, which is not present in modern Japanese. Since we currently focus on modern Japanese inflections, retaining these rules could lead to confusing matches in modern contexts.
Yes, I agree. It's probably better to do it properly or not at all. I wonder if @SaltfishAmi has any thoughts since I think you added
Wow, thank you. I didn't know that background.
No, that's perfect. Sorry, I only skimmed the tests but now I see the ずる tests etc. |
8b496c3
to
21ea147
Compare
simp. chinese:
I absolutely cannot recall what I did four years ago... |
Very nice, thank you! |
This adds support for irregular inflections of する-verbs by introducing a new inflection reason: 'irregular'. This is used to handle cases where the verbs deviate from the standard する conjugation pattern. The following irregular forms are now supported: - ⚪︎せさせる, ⚪︎せられる (irregular causative and passive forms) - ⚪︎しさせる, ⚪︎しられる (alternative causative and passive forms) - 五段化-verbs (する-verbs inflected as す-Godan verbs) - ずる-verbs
21ea147
to
5cb0d43
Compare
Thank you! |
Description
This adds support for irregular inflections of する-verbs by introducing a new inflection reason: 'irregular'.
This is used to handle cases where the verbs deviate from the standard する conjugation pattern.
The following irregular forms are now supported:
Caveats
irregular < potential < potential or passive
instead of the correctirregular < potential or passive
. To prevent this, we now explicitly avoid reason chains such aspotential < potential or passive
orpotential < causative
, which would be grammatically incorrect anyway.Since we currently focus on modern Japanese inflections, retaining these rules could lead to confusing matches in modern contexts.
Fixes #1467. See the related discussion for more details.