Skip to content

Go package adding accents automatically to Turkish text.

License

Notifications You must be signed in to change notification settings

mua/go-deasciifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Go package adding accents automatically to Turkish text.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages