mirror of
https://github.com/keymanapp/keyman.git
synced 2026-10-16 10:57:35 +00:00
docs(web): assertion -> assumption
This commit is contained in:
parent
10ccc954ef
commit
d1c70c5dd2
1 changed files with 7 additions and 4 deletions
|
|
@ -106,11 +106,14 @@ export class ContextTokenization {
|
|||
* @returns
|
||||
*/
|
||||
applyContextSlide(lexicalModel: LexicalModel, transform: Transform & { deleteRight: number }): ContextTokenization {
|
||||
// Assertion: the current (sliding) context window is alignable and
|
||||
// valid deltas have been computed.
|
||||
// Assumption: the current (sliding) context window is alignable and valid
|
||||
// deltas have been computed.
|
||||
|
||||
// Assertion: the transform will EITHER have an insert OR a deleteRight. Not both.
|
||||
// Assertion: deleteLeft is always empty. (There's nothing to the left; we apply on that side.)
|
||||
// Assumption: the transform will EITHER have an insert OR a deleteRight.
|
||||
// Not both.
|
||||
|
||||
// Assumption: deleteLeft is always empty. (There's nothing to the left;
|
||||
// we apply on that side.)
|
||||
if(TransformUtils.isEmpty(transform)) {
|
||||
// No edits needed? Why retokenize?
|
||||
return new ContextTokenization(this);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue