We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e2480e commit 1bc19e5Copy full SHA for 1bc19e5
src/parser/parser.ts
@@ -297,13 +297,15 @@ const modifiers = sequence(
297
.filter(filter(MODIFIER_RULES)),
298
),
299
)
300
- .sortBy(([_, nanpaModifiers]) => -nanpaModifiers.length)
301
.map(([modifiers, nanpaModifiers, piModifiers]) => [
302
...modifiers,
303
...nanpaModifiers,
304
...piModifiers,
305
])
306
- .filter(filter(MULTIPLE_MODIFIERS_RULES));
+ .filter(filter(MULTIPLE_MODIFIERS_RULES))
+ .sortBy((modifiers) =>
307
+ -modifiers.filter(({ type }) => type === "nanpa").length
308
+ );
309
const singlePhrase = phrase
310
.map((phrase): MultiplePhrases => ({ type: "simple", phrase }));
311
const longAnu = sequence(
0 commit comments