The spell:is-correct() function checks a single word against a given 
dictionary. It's clearly intended for "Did you mean?" kinds of features. My use 
case is different: I want to run a spell check across an entire element, namely 
an element containing the uncorrected OCR text from an entire digitized book, 
so I can get a rough idea of the error rate.

Can anyone suggest a good approach? Do I need to tokenize all the words in the 
element and then loop over them, checking each word one by one with 
spell:is-correct? Or is there a better way?

Thanks,
Greg


Gregory Murray
Digital Library Application Developer
Princeton Theological Seminary Library
[email protected]

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to