go-unidecode
CategoryNatural Language Processing
SubcategoryTransliteration
Stars0
ASCII transliterations of Unicode text
About go-unidecode
go-unidecode
ASCII transliterations of Unicode text. Inspired by python-unidecode.
Installation
go get github.com/mozillazg/go-unidecode
Install CLI tool:
$ go install github.com/mozillazg/go-unidecode/cmd/unidecode@latest
$ unidecode 北京kožušček
Bei Jing kozuscek
Documentation
API documentation can be found here: https://godoc.org/github.com/mozillazg/go-unidecode
Usage
package main
import (
"fmt"
"github.com/mozillazg/go-unidecode"
)
func main() {
s := "abc"
fmt.Println(unidecode.Unidecode(s))
// Output: abc
s = "北京"
fmt.Println(unidecode.Unidecode(s))
// Output: Bei Jing
s = "kožušček"
fmt.Println(unidecode.Unidecode(s))
// Output: kozuscek
}
Frequently Asked Questions
What is go-unidecode?
go-unidecode is a Natural Language Processing library for the Go programming language. ASCII transliterations of Unicode text
How do I install go-unidecode?
Install go-unidecode with the Go module system using `go get mozillazg/go-unidecode`. Check the repository for the current installation instructions.
What category does go-unidecode belong to?
go-unidecode is listed under Natural Language Processing, specifically Transliteration.