* In the following query, the input is first normalized (words are stemmed, converted to lower case, and diacritics are removed). It returns {{Code|1}}:
<pre class="brush:xquery">
let $norm := function($s) { ft:normalize($s?, map { 'stemming': true() }) }
return strings:levenshtein($norm("HOUSES"), $norm("house"))
</pre>