Popularity
4.5
Stable
Activity
3.1
-
123
4
19

Programming language: Go
License: MIT License
Latest version: v0.1.1

go-unidecode alternatives and similar packages

Based on the "Natural Language Processing" category.
Alternatively, view go-unidecode alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of go-unidecode or a related project?

Add another 'Natural Language Processing' Package

README

go-unidecode

Build Status Coverage Status Go Report Card GoDoc

ASCII transliterations of Unicode text. Inspired by python-unidecode.

Installation

go get -u github.com/mozillazg/go-unidecode

Install CLI tool:

$ go get -u github.com/mozillazg/go-unidecode/unidecode

$ 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
}