diff options
author | cyfraeviolae <cyfraeviolae> | 2024-04-03 03:10:44 -0400 |
---|---|---|
committer | cyfraeviolae <cyfraeviolae> | 2024-04-03 03:10:44 -0400 |
commit | 6d7ba58f880be618ade07f8ea080fe8c4bf8a896 (patch) | |
tree | b1c931051ffcebd2bd9d61d98d6233ffa289bbce /venv/lib/python3.11/site-packages/faker/providers/company/fil_PH | |
parent | 4f884c9abc32990b4061a1bb6997b4b37e58ea0b (diff) |
venv
Diffstat (limited to 'venv/lib/python3.11/site-packages/faker/providers/company/fil_PH')
2 files changed, 94 insertions, 0 deletions
diff --git a/venv/lib/python3.11/site-packages/faker/providers/company/fil_PH/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/company/fil_PH/__init__.py new file mode 100644 index 0000000..01319b3 --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/company/fil_PH/__init__.py @@ -0,0 +1,94 @@ +from collections import OrderedDict +from typing import Sequence + +from ..en_PH import Provider as EnPhProvider + + +class Provider(EnPhProvider): + """ + Provider for company names for fil_PH locale + + Companies in the Philippines rarely have Filipino names, and when they do, the English name is usually used way more + frequently by the locals. In some cases, the Filipino names are more like in Taglish, so for the purposes of this + provider, only English company names will be generated for this locale. + + Company and brand taglines in pure Filipino, however, are much more common, so this provider will generate catch + phrases in pure Filipino randomly alongside the English ones. + """ + + catch_phrase_formats = OrderedDict( + [ + ("{{english_catch_phrase}}", 0.64), + ( + "Ang {{random_noun_ish_good_trait}} ng {{random_object_of_concern}}!", + 0.12, + ), + ( + "Serbisyong {{random_good_service_adjective}} para sa {{random_object_of_concern}}!", + 0.12, + ), + ("Kahit kailan, {{random_good_service_adjective_chain}}!", 0.12), + ] + ) + noun_ish_good_traits = ( + "bida", + "ginhawa", + "haligi", + "karangalan", + "lingkod", + "liwanag", + "numero uno", + "pag-asa", + "tulay", + ) + good_service_adjectives = ( + "bida", + "dekalidad", + "hindi umaatras", + "kakaiba", + "maasahan", + "magaling", + "mapatitiwalaan", + "numero uno", + "panalo", + "tagumpay", + "tama", + "tapat", + "totoo", + "tunay", + "walang kapantay", + "walang katulad", + "walang tatalo", + ) + objects_of_concern = [ + "Filipino", + "Pilipinas", + "Pilipino", + "Pinoy", + "bahay", + "bansa", + "bayan", + "buhay", + "mamamayan", + "mundo", + "tahanan", + ] + + def random_noun_ish_good_trait(self) -> str: + return self.random_element(self.noun_ish_good_traits) + + def random_good_service_adjective(self) -> str: + return self.random_element(self.good_service_adjectives) + + def random_good_service_adjective_chain(self) -> str: + adjectives: Sequence[str] = self.random_elements(self.good_service_adjectives, length=2, unique=True) + return " at ".join(adjectives) + + def random_object_of_concern(self) -> str: + return self.random_element(self.objects_of_concern) + + def english_catch_phrase(self) -> str: + return super().catch_phrase() + + def catch_phrase(self) -> str: + return self.random_element(self.catch_phrase_formats) diff --git a/venv/lib/python3.11/site-packages/faker/providers/company/fil_PH/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/company/fil_PH/__pycache__/__init__.cpython-311.pyc Binary files differnew file mode 100644 index 0000000..372e00f --- /dev/null +++ b/venv/lib/python3.11/site-packages/faker/providers/company/fil_PH/__pycache__/__init__.cpython-311.pyc |