Skip to content

Instantly share code, notes, and snippets.

@agemooij
agemooij / NormalizeSupport.scala
Last active September 22, 2022 11:02
Scala text normalization
package rfs.rebb
package common
/**
* Performs standard Java/unicode normalization on the trimmed and lowercased form
* of the input String and then adds a few extra tricks for dealing with special
* characters.
*
* JVM/Unicode normalization references (warning: learning curve black hole, beware!):
*