This is MySQL User Defined Function written by cgo.
Normalize string following neologd.
(neologd normalize algorithm)
https://github.com/neologd/mecab-ipadic-neologd/wiki/Regexp.ja
In addition, this udf remove \n
, \r
, \t
and \v
.
$ ./build.sh
(notice)
- require root privilege
MariaDB [(none)]> select ws_neologd_normalize(' PRML 副 読 本 ');
+-----------------------------------------------------------------------------+
| ws_neologd_normalize(' PRML 副 読 本 ') |
+-----------------------------------------------------------------------------+
| PRML副読本 |
+-----------------------------------------------------------------------------+