diff --git a/web/src/engine/predictive-text/worker-thread/src/main/correction/search-quotient-spur.ts b/web/src/engine/predictive-text/worker-thread/src/main/correction/search-quotient-spur.ts index fbfcd97d87..be7260325f 100644 --- a/web/src/engine/predictive-text/worker-thread/src/main/correction/search-quotient-spur.ts +++ b/web/src/engine/predictive-text/worker-thread/src/main/correction/search-quotient-spur.ts @@ -362,11 +362,8 @@ export abstract class SearchQuotientSpur implements SearchQuotientNode { // Forbid a raw edit-distance of greater than 2. // Note: .knownCost is not scaled, while its contribution to .currentCost _is_ scaled. - let substitutionsOnly = false; if(currentNode.editCount > 2) { return unmatchedResult as PathResult; - } else if(currentNode.editCount == 2) { - substitutionsOnly = true; } // Thresholds _any_ path, partially based on currently-traversed distance. @@ -388,12 +385,6 @@ export abstract class SearchQuotientSpur implements SearchQuotientNode { // OK, we fully crossed a graph edge and have landed on a transition point; // time to build more edges / edge batches. - // Always possible, as this does not require any new input. - if(!substitutionsOnly) { - let insertionEdges = currentNode.buildInsertionEdges(); - this.selectionQueue.enqueueAll(insertionEdges); - } - if(currentNode.spaceId == this.spaceId) { if(this.returnedValues) { if((this.returnedValues[currentNode.resultKey]?.currentCost ?? Number.POSITIVE_INFINITY) > currentNode.currentCost) {