Skip to content

talkgooder attempts to smooth out grammar, punctuation, and number-related corner cases when formatting text for human consumption. It is intended for applications where you know there's a noun and are trying to generate text, but you don't know much about it.

License

Notifications You must be signed in to change notification settings

brianwarner/talkgooder

Repository files navigation

Talk Gooder

PyPI - License GitHub Actions Workflow Status GitHub Actions Workflow Status PyPI - Downloads

talkgooder attempts to smooth out grammar, punctuation, and number-related corner cases when formatting text for human consumption. It is intended for applications where you know there's a noun and are trying to generate text, but you don't know much about it.

It handles:

  • Plurals: "one cat" vs. "zero cats"
  • Possessives: "the cat's toy" vs. "both cats' toys"
  • Numbers to words: 2 == "two", 16 == 16
  • "There is" vs. "There are": "There is one cat" vs. "There are two cats"
  • "A" vs. "An": "A cat" vs. "An orange cat"
  • "Was" vs. "Were": "There was one cat" vs. "There were two cats"

talkgooder is currently specific to American English, but it is extensible to other languages.

Contributions are welcome at github.com/brianwarner/talkgooder!

About

talkgooder attempts to smooth out grammar, punctuation, and number-related corner cases when formatting text for human consumption. It is intended for applications where you know there's a noun and are trying to generate text, but you don't know much about it.

Resources

License

Stars

Watchers

Forks