This is a Go package for deasciifying Turkish text. It is a port of Prof. Deniz Yuret . Also test cases and constants are ported from the Python version by Emre Sevinc.
package main
import (
"fmt"
"github.com/mua/go-deasciifier"
)
func main() {
fmt.Println(deasciifier.Deasciify("dunyanin en guzel sehri istanbul"))
}
// Output: dünyanın en güzel şehri istanbul
There is also a command line tool for deasciifying text. You can install it with
$ go install github.com/mua/go-deasciifier/cmd/deasciify
and use it like this:
$ deasciify -s "dunyanin en guzel sehri istanbul"
dünyanın en güzel şehri istanbul
$ echo "dunyanin en guzel sehri istanbul" > file.txt
$ deasciify -f file.txt
dünyanın en güzel şehri istanbul