Get yes/no-like words.
Project description
yes-no-words
Get yes/no-like words.
Inspired by: https://github.com/sindresorhus/yes-no-words
install
pip install yes-no-words
usage
import yes_no_words
yes_no_words.yes_random() # "yisss"
yes_no_words.no_random() # "absolutely not"
# test "truthy" words
yes_no_words.is_truthy("Yisss") # True
yes_no_words.is_truthy("nope") # False
# test "falsy" words
yes_no_words.is_falsy("certainly not") # True
api
.YES
Yes like words.
.NO
No like words.
.ALL
Both yes and no like words.
.yes_random() -> str
Random yes like words.
.no_random() -> str
Random no like words.
.all_random() -> str
Random yes or no like words.
.is_falsy(word_or_phrase: str) -> bool
Test a word to verify if it's falsy.
.is_truthy(word_or_phrase: str) -> bool
Test a word to verify if it's truthy.
license
Apache License 2.0 :copyright: Jeff Triplett
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
yes-no-words-2022.4.4.tar.gz
(6.4 kB
view hashes)
Built Distribution
Close
Hashes for yes_no_words-2022.4.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 429e8eb147dfff99cb3e826a1ecc4f68859fd20fa12697add36f8a87ca51ec43 |
|
MD5 | 9a9c4a5a8bf5c2d266df475f0442a3b6 |
|
BLAKE2b-256 | 9b899e6340ff59e0944a1b7ee2ed0e61afeb16e2667394d561c904204bbe1a31 |