Skip to content

chizmw/go-phoneticise

Repository files navigation

phoneticise

A simple library to convert ASCII text to its equivalent NATO phonetic alphabet representation.

For example:

Hello World!

becomes:

Hotel Echo Lima Lima Oscar (space) Whiskey Oscar Romeo Lima Delta

Installation

go get github.com/chiselwright/go-phoneticise

Example

package main

import (
    "fmt"

    "github.com/chiselwright/go-phoneticise"
)

func main() {
    fmt.Println(phoneticise.Phoneticise("Chisel"))
}

cli-client

You can experiment with the library by running:

go run ./cmd/cli-client/main.go

You'll see something like this:

❯ go run ./cmd/cli-client/main.go
{empty input or ^C to quit}
Enter text: Hello World!
» Hotel Echo Lima Lima Oscar (space) Whiskey Oscar Romeo Lima Delta
{empty input or ^C to quit}
Enter text: Hello World!
» Hotel Echo Lima Lima Oscar (space) Whiskey Oscar Romeo Lima Delta
{empty input or ^C to quit}
Enter text: Not My cIRcus
» November Oscar Tango (space) Mike Yankee (space) Charlie India Romeo Charlie Uniform Sierra
{empty input or ^C to quit}
Enter text:

About

A simple library to convert ASCII text to its equivalent NATO phonetic alphabet representation.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages