mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-07-30 07:21:32 -07:00
fix(ci): address PR review and quality gate
This commit is contained in:
@@ -80,9 +80,7 @@ test('annotateTokens resolves maturity through the kana reading fallback', () =>
|
||||
reading: string | undefined;
|
||||
allowReadingOnlyMatch: boolean | undefined;
|
||||
}> = [];
|
||||
const tokens = [
|
||||
makeToken({ surface: '大体', headword: '大体', reading: 'だいたい', endPos: 2 }),
|
||||
];
|
||||
const tokens = [makeToken({ surface: '大体', headword: '大体', reading: 'だいたい', endPos: 2 })];
|
||||
|
||||
const result = annotateTokens(
|
||||
tokens,
|
||||
|
||||
@@ -646,7 +646,9 @@ function computeTokenKnownMaturity(
|
||||
if (!fallbackReading || fallbackReading === matchText.trim()) {
|
||||
return undefined;
|
||||
}
|
||||
return getKnownWordTier(fallbackReading, undefined, { allowReadingOnlyMatch: false }) ?? undefined;
|
||||
return (
|
||||
getKnownWordTier(fallbackReading, undefined, { allowReadingOnlyMatch: false }) ?? undefined
|
||||
);
|
||||
}
|
||||
|
||||
function filterTokenFrequencyRank(
|
||||
|
||||
Reference in New Issue
Block a user