🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

talkgooder

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

talkgooder

Smooth out grammar, punctuation, and number-related corner cases when formatting text for human consumption

1.1.1
PyPI
Maintainers
1

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!

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts