Go bindings for Aksharamukha, a script converter and transliteration tool for various Indic and other scripts.
- Transliteration between 100+ scripts
- Romanization of text using ISO/academic standards
- Support for various Indic, Southeast Asian, and Middle Eastern scripts
- Docker-based deployment
- Script autoselection for language romanization
- Customizable transliteration options
import (
"fmt"
"log"
ak "github.com/tassa-yoniso-manasi-karoto/go-aksharamukha"
)
func main() {
// Initialize the service
a, err := ak.NewAksharamukha()
if err != nil {
log.Fatal(err)
}
if err := a.Init(); err != nil {
log.Fatal(err)
}
defer a.Close()
// Simple transliteration
text := "नमस्ते"
result, err := a.TransliterateSimple(text, ak.Devanagari, ak.Tamil)
if err != nil {
log.Fatal(err)
}
fmt.Println(result)
// Romanization from a ISO-639 language code
result, err = a.Romanize("नमस्ते", "hin")
if err != nil {
log.Fatal(err)
}
fmt.Println(result)
}
நமஸ்தே
namastē
- Go 1.16 or later
- Installed Docker Engine (linux) or Docker Desktop (windows/mac)
- Internet connection (for initial container pull)