Behaviour SwRS-MDOKFSTUDIO-REVIEW-107
A slightly changed quote is followed by a bounded fuzzy search
When a review thread quote has no exact copy, the extension SHALL move the thread to the one place of the document that differs from the quote by at most 20 percent of its length and agrees on numbers and negation words, searching only around the rarest word of the quote within a fixed cost bound, and orphan the thread when there is no such place or the places are ambiguous.
Part of StRS-MDOKFSTUDIO-REVIEW-001, outside the paths drawn on its map.
Another outcome at step 1 of path 1 in StRS-MDOKFSTUDIO-REVIEW-008, in the state “The text of a document with review threads changes”.
Scenarios 8
The situations the tests check; open one to read it.
nominalSmall edit
boundaryLarge edit
boundaryWhere the fuzzy search gives up
| Input | Outcome |
|---|---|
| A quote whose words are all gone from the document | There is no candidate and the thread is orphaned |
| A quote whose rarest word occurs more than 20 times | No fuzzy search is made for it |
| A short quote of under 12 characters with no exact copy | No fuzzy search is made |
| A text of over 2 million characters | The fuzzy search is skipped |
refusalNumbers and negation words must agree
| Input | Outcome |
|---|---|
| The quote "You should enable the cache" and the sentence "You should not enable the cache" | The thread is orphaned |
| The quote with 300 and the sentence with 30 | The thread is orphaned |
The negation words are not, no, never, without, cannot, nor, none, ne, pas, non and words ending in n't. Numbers and these words must be the same in the quote and in the match.