Treora opened a new issue #83:
URL: https://github.com/apache/incubator-annotator/issues/83


   Many annotation tools want to match a quote also when it has been modified 
slightly, but we have yet to implement this.
   
   Enabling approximate/fuzzy string matching could be an option to our 
existing implementation (perhaps a parameter that tells how fuzzy the match 
should be, where 0 means exact matching); alternatively it could be exposed as 
a separate implementation.
   
   A second question is whether the matcher should return information about the 
quality of the match, and if so, how the API would look. I suppose a match 
object could have an extra attribute expressing the ‘match quality’; though in 
case of refined/range selectors we should figure out how to propagate this 
information.
   
   Prior art we could borrow from:
   - https://github.com/tilgovi/dom-anchor-text-quote (uses diff-match-patch)
   - https://github.com/robertknight/approx-string-match-js/
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to