Skip to content

Change scanning.scanResolution recommended setting to character for agglutinative languages#2308

Merged
Kuuuube merged 1 commit intoyomidevs:masterfrom
ImenaOphelia:agglutinative
Mar 1, 2026
Merged

Change scanning.scanResolution recommended setting to character for agglutinative languages#2308
Kuuuube merged 1 commit intoyomidevs:masterfrom
ImenaOphelia:agglutinative

Conversation

@ImenaOphelia
Copy link
Copy Markdown

Source is this Wikipedia category.

Not sure what translation.searchResolution does; removed it completely for agglutinatives.

@ImenaOphelia ImenaOphelia requested a review from a team as a code owner February 16, 2026 17:44
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8f867a37e8

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +269 to +270
"path": "scanning.scanResolution",
"value": "character"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Restore word search resolution for agglutinative presets

This replacement removes the previous translation.searchResolution = "word" override for Finnish (and the same pattern appears in hu, id, mn, and tr), so these languages now fall back to the global default translation.searchResolution = "letter" (ext/data/schemas/options-schema.json). In letter mode, Translator._getNextSubstring truncates one character at a time (ext/js/language/translator.js), which substantially increases per-scan lookup attempts and introduces many partial-prefix matches compared with the prior word-boundary behavior, especially on long agglutinative words; keeping an explicit word search resolution avoids this regression.

Useful? React with 👍 / 👎.

@Kuuuube Kuuuube added kind/enhancement The issue or PR is a new feature or request area/settings This issue or PR is related to settings. labels Feb 16, 2026
@StefanVukovic99
Copy link
Copy Markdown
Member

what translation.searchResolution does

Search resolution determines whether only whole words will be searched, or any prefix substring:
image
Some people are annoyed by having the prefix matches shown (e.g. cat for category) so they like it on 'word', and it can stay that way. For languages with lots of compound nouns like German, and probably agglutinative languages also, 'letter' is more useful.

scanResolution is 'aim assist', whether the text to be searched starts from the cursor or from the beginning of the word. So I think the description Scan text one character at a time. could be improved.

Copy link
Copy Markdown
Member

@Kuuuube Kuuuube left a comment

Choose a reason for hiding this comment

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

Im fine merging this. Might need some followup for translation.searchResolution. Not entirely sure but doesn't seem like it will cause any issues as is.

@Kuuuube Kuuuube added this pull request to the merge queue Mar 1, 2026
Merged via the queue into yomidevs:master with commit 8c71f26 Mar 1, 2026
19 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/settings This issue or PR is related to settings. kind/enhancement The issue or PR is a new feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants