github.com/gophersgang/ascii-folding

An Golang port of the Apache Lucene ASCII Folding Filter. This library converts alphabetic, numeric, and symbolic Unicode characters into their ASCII equivalents, if one exists.


License
MIT
Install
go get github.com/gophersgang/ascii-folding

Documentation

Ascii Folding Library Build Status codecov

An Golang port of the Apache Lucene ASCII Folding Filter. This library converts alphabetic, numeric, and symbolic Unicode characters into their ASCII equivalents, if one exists.

Example Usage in a program:

package main

import "github.com/hkulekci/ascii-folding"

func main() {
    print(asciiFolding.Fold("L' heure n' est plus à vanter cette franche camaraderie qui avait marqué les relations entre"))
}

Source : http://svn.apache.org/repos/asf/lucene/java/tags/lucene_solr_4_5_1/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/ASCIIFoldingFilter.java