typolice is a tool to find typos in text.
$ go install github.com/tetzng/typolice/cmd/typolice@latest
$ typolice --text "AWS S3 is an object storage service."
Typo: AWS S3, Preferred: Amazon S3
Total typos found: 1
$ echo "Chat GPT is mentioned." | typolice --stdin
Typo: Chat GPT, Preferred: ChatGPT
Total typos found: 1
$ cat custom.json
{
"My Service": ["MyService"]
}
$ typolice --dictionary custom.json --text "MyService ships soon."
Typo: MyService, Preferred: My Service
Total typos found: 1
Use --file <path>
to scan documents, and combine flags or positional arguments to analyze multiple sources in a single run.
MIT
tetzng