Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mozillazg/go-unidecode
ASCII transliterations of Unicode text.
https://github.com/mozillazg/go-unidecode
go golang unidecode
Last synced: 20 days ago
JSON representation
ASCII transliterations of Unicode text.
- Host: GitHub
- URL: https://github.com/mozillazg/go-unidecode
- Owner: mozillazg
- License: mit
- Created: 2016-07-08T13:15:10.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-05-14T12:06:38.000Z (over 1 year ago)
- Last Synced: 2024-12-12T16:43:17.767Z (about 1 month ago)
- Topics: go, golang, unidecode
- Language: Go
- Homepage: https://godoc.org/github.com/mozillazg/go-unidecode
- Size: 324 KB
- Stars: 132
- Watchers: 4
- Forks: 19
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-go - go-unidecode - ASCII transliterations of Unicode text. (Natural Language Processing / Transliteration)
- zero-alloc-awesome-go - go-unidecode - ASCII transliterations of Unicode text. (Natural Language Processing / Transliteration)
- awesome-go - go-unidecode - ASCII transliterations of Unicode text. - ★ 35 (Natural Language Processing)
- awesome-go-extra - go-unidecode - 07-08T13:15:10Z|2022-08-20T07:57:20Z| (Bot Building / Transliteration)
- awesome-go-zh - go-unidecode
README
go-unidecode
==============[![Build Status](https://github.com/mozillazg/go-unidecode/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/mozillazg/go-unidecode/actions/workflows/ci.yml)
[![Coverage Status](https://coveralls.io/repos/mozillazg/go-unidecode/badge.svg?branch=master)](https://coveralls.io/r/mozillazg/go-unidecode?branch=master)
[![Go Report Card](https://goreportcard.com/badge/github.com/mozillazg/go-unidecode)](https://goreportcard.com/report/github.com/mozillazg/go-unidecode)
[![GoDoc](https://godoc.org/github.com/mozillazg/go-unidecode?status.svg)](https://godoc.org/github.com/mozillazg/go-unidecode)ASCII transliterations of Unicode text. Inspired by [python-unidecode](https://github.com/avian2/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-unidecodeUsage
------```go
package mainimport (
"fmt"
"github.com/mozillazg/go-unidecode"
)func main() {
s := "abc"
fmt.Println(unidecode.Unidecode(s))
// Output: abcs = "北京"
fmt.Println(unidecode.Unidecode(s))
// Output: Bei Jings = "kožušček"
fmt.Println(unidecode.Unidecode(s))
// Output: kozuscek
}
```