Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Breame is a lightweight Python package with a number of tools to aid in the detection of words that have dual spellings and meanings in British and American English.
( British English and American English Language Tools)
Breame is a lightweight Python package with a number of utility tools to aid in the detection of words that have dual spellings in British and American English.
Breame can also be used to detect and provide definitions for words that have different meanings in both British English and American English.
Additionally, Breame includes some tooling to detect and define words and phrases that are specific to British English or American English i.e. "strop" in British English or "mailman" in American English.
pip install breame
Check American and British English Spelling for words exists:
from breame.spelling import american_spelling_exists, british_spelling_exists
american_spelling_exists("color")
>>> True
british_spelling_exists("colour")
>>> True
Get British English spelling of American English word and vice versa:
from breame.spelling import get_american_spelling, get_british_spelling
get_american_spelling("colour")
>>> 'color'
get_british_spelling("color")
>>> 'colour'
from breame.meanings import different_meanings_exist, get_meaning_definitions
different_meanings_exist("football")
>>> True
get_meaning_definitions("football")
>>> {'American English': 'American football',
'British English': '(usually) Association football (US: soccer). Less frequently applies to \nRugby football (espec. Rugby union in English private schools).'}
American:
from breame.terminology import is_american_english_term, get_american_term_definition
is_american_english_term("bleachers")
>>> True
get_american_term_definition("bleachers")
>>> 'are the raised open air tiered rows of seats (stands) found at sports fields or at other spectator events'
British:
from breame.terminology import is_british_english_term, get_british_term_definition
is_british_english_term("wellies")
>>> True
get_british_term_definition("wellies")
>>> 'Wellington boots, waterproof rubber boots named after the Duke of Wellington.'
If you would like to contribute to the package or add to the data constants used for spelling, meanings, or terminology please don't hesitate to submit a PR or raise an issue. The data used is by no means an exhaustive list.
Stats for some of the data constants used throughout the package
get_british_spelling()
get_american_spelling()
This package was inspired by the javascript library American British English Translator by @hyperreality and @jessp01. All of the data constants defined in their package are gratefully used throughout breame.
The sources for American British English Translator constants are below:
Uses modified versions of the following lists:
FAQs
Breame is a lightweight Python package with a number of tools to aid in the detection of words that have dual spellings and meanings in British and American English.
We found that breame demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.