Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

<#assign dom = doc.soup>
<#assign source = dom.text()>
<#assign abstract = "blah blah blah">
<#assign sim = LIB.textSimilarity(source, abstract)>
similarity=${sim}

Spelling

The same spell checker that is available as a ‘predefined’ filter is also available to scripts.  The value returned is the integer error rate from 0 to 100 where 100 would mean every single word is misspelled!  Note that the spelling dictionary is (currently) hard-coded to American English … hmm, how is that not an oxymoron?   … so be careful how tightly to filter for spelling errors if you are expecting non-American spellings.

...