hkulekci / ascii-folding

A 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.
MIT License
12 stars 2 forks source link

Ascii Folding Library Build Status codecov

A 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