breame
v0.1.0 Initial Release
( br itish e nglishとam erican e nglish)
Breameは、英国とアメリカの英語でデュアルスペルを持っている単語の検出を支援するための多くのユーティリティツールを備えた軽量のPythonパッケージです。
Breameは、英国の英語、アメリカ英語、および一般的な英語の両方で異なる意味を持つ単語の定義を検出および提供するためにも使用できます。
さらに、Breameには、イギリスの英語またはアメリカ英語の「ストロップ」に固有の単語やフレーズを検出および定義するためのいくつかのツールが含まれています。
pip install breame単語のアメリカと英国の英語の両方のスペルが存在するかどうかを確認してください。
from breame . spelling import american_spelling_exists , british_spelling_exists
american_spelling_exists ( "color" )
>> > True
british_spelling_exists ( "colour" )
>> > Trueアメリカの英語の単語の英国の英語の綴りを入手してください。
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 n Rugby football (espec. Rugby union in English private schools).' }アメリカ:アメリカ:
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'イギリス人:
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.' パッケージに貢献したり、スペル、意味、または用語に使用されるデータ定数に追加したい場合は、PRを提出したり、問題を提起したりすることをためらわないでください。使用されるデータは、決して網羅的なリストではありません。
パッケージ全体で使用されるデータ定数の一部の統計
get_british_spelling()get_american_spelling() このパッケージは、@hyperRealityと @jessp01によるJavaScriptライブラリAmerican British English翻訳者に触発されました。パッケージで定義されているすべてのデータ定数は、Breame全体で感謝して使用されています。
アメリカの英国英語翻訳者の定数のソースは以下にあります。
次のリストの変更されたバージョンを使用します。