-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Old annotations anchoring in the wrong places #258
Comments
@lenazun you mention Zendesk tickets in the above. Any additional test cases you can provide will be very helpful in tuning this behaviour. |
Additional examples here: |
Looks like this type of bug is not getting fixed. If there is interest in fixing these types of bugs, here's the details on another case of this bug. That is the output from https://hypothes.is/api/annotations/YHjZCrhREey4v5OrWLPSyA The annotation should be an orphan now. Instead this HTML is incorrectly matching:
After Hypothesis annotates, the DOM is this:
Here's a brief summary of the API output for the annotation:
This is my first annotation and I hit this bug after the 2nd time the page text changed. |
The quote anchoring logic tolerates edits to the original document and has to pick some threshold for when the closest match in the document is different enough from the original that it should not match. Where the threshold is set trades off precision vs recall of matches. The current logic uses a very liberal threshold that tolerates up to 50% character-level edits between the original quote and the nearest match. |
Thx for the explanation. I bet it's nearly impossible to create threshold logic that makes content authors, annotators and readers happy without the input/feedback of the content authors, annotators or readers. Perhaps publisher groups is a solution whereby some human input/control from the publisher group can manually remove annotations that are no longer helpful to readers. |
Originally reported as hypothesis/h#4328 by @lenazun.
Steps to reproduce
Expected behaviour
This annotation should not anchor in the new text, since it's clearly different.
Actual behaviour
This annotation anchors in new text, that is very different from the old text.
Browser/system information
Version:
0.52.0
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36
URL:
https://hypothes.is/jobs/
Date:
25 Jan 2017 17:35:12 -0800
Additional details
I have a couple of user tickets talking about this behavior. I think reanchoring is inevitable in some cases, but it seems like the context of the text is different enough that we may want to adjust what's going on here.
The text was updated successfully, but these errors were encountered: