mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-29 19:57:41 +00:00
docs(web): add review-requested comment
This commit is contained in:
parent
1983f129fa
commit
d819190e5c
1 changed files with 2 additions and 0 deletions
|
|
@ -124,6 +124,8 @@ export abstract class SearchQuotientSpur implements SearchQuotientNode {
|
|||
const bestLocalInput = this.inputs?.reduce((max, curr) => max.p < curr.p ? curr : max) ?? { sample: { insert: '', deleteLeft: 0 }, p: 1};
|
||||
|
||||
return {
|
||||
// Take the parent node's result, apply delete-lefts, then apply our most
|
||||
// likely local insert.
|
||||
text: KMWString.substring(bestPrefix.text, 0, this.parentNode.codepointLength - bestLocalInput.sample.deleteLeft) + bestLocalInput.sample.insert,
|
||||
p: bestPrefix.p * bestLocalInput.p
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue