Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 913 Bytes

README.md

File metadata and controls

35 lines (26 loc) · 913 Bytes

Deasciifier Go Package

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.

Usage of the package

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