summaryrefslogtreecommitdiff
path: root/venv/lib/python3.11/site-packages/faker/providers/company/en_PH
diff options
context:
space:
mode:
Diffstat (limited to 'venv/lib/python3.11/site-packages/faker/providers/company/en_PH')
-rw-r--r--venv/lib/python3.11/site-packages/faker/providers/company/en_PH/__init__.py147
-rw-r--r--venv/lib/python3.11/site-packages/faker/providers/company/en_PH/__pycache__/__init__.cpython-311.pycbin4192 -> 0 bytes
2 files changed, 0 insertions, 147 deletions
diff --git a/venv/lib/python3.11/site-packages/faker/providers/company/en_PH/__init__.py b/venv/lib/python3.11/site-packages/faker/providers/company/en_PH/__init__.py
deleted file mode 100644
index c92ddd5..0000000
--- a/venv/lib/python3.11/site-packages/faker/providers/company/en_PH/__init__.py
+++ /dev/null
@@ -1,147 +0,0 @@
-from collections import OrderedDict
-
-from .. import Provider as CompanyProvider
-
-
-class Provider(CompanyProvider):
- """
- Provider for company names for en_PH locale
-
- Company naming scheme and probabilities are inspired by and/or based on existing companies in the Philippines.
-
- Sources:
- - https://en.wikipedia.org/wiki/List_of_companies_of_the_Philippines
- - https://www.pse.com.ph/stockMarket/listedCompanyDirectory.html
- """
-
- formats = OrderedDict(
- [
- (
- "{{random_company_adjective}} {{random_company_noun_chain}} {{company_type}} {{company_suffix}}",
- 0.24,
- ),
- (
- "{{random_company_acronym}} {{random_company_noun_chain}} {{company_type}} {{company_suffix}}",
- 0.24,
- ),
- (
- "{{last_name}} {{random_company_noun_chain}} {{company_type}} {{company_suffix}}",
- 0.16,
- ),
- ("{{random_company_adjective}} {{company_type}} {{company_suffix}}", 0.12),
- ("{{random_company_acronym}} {{company_type}} {{company_suffix}}", 0.12),
- ("{{last_name}} {{company_type}} {{company_suffix}}", 0.09),
- (
- "National {{random_company_product}} Corporation of the Philippines",
- 0.03,
- ),
- ]
- )
- company_suffixes = OrderedDict(
- [
- ("Inc.", 0.45),
- ("Corporation", 0.45),
- ("Limited", 0.1),
- ]
- )
- company_types = (
- "Bank",
- "Banking",
- "Capital",
- "Company",
- "Construction",
- "Development",
- "Enterprise",
- "Equities",
- "Finance",
- "Foods",
- "Group",
- "Holdings",
- "Hotel",
- "Manufacturing",
- "Mining",
- "Properties",
- "Resorts",
- "Resources",
- "Services",
- "Shipping",
- "Solutions",
- "Technologies",
- "Trust",
- "Ventures",
- )
- company_products = (
- "Bottle",
- "Coconut",
- "Computer",
- "Electricity",
- "Flour",
- "Furniture",
- "Glass",
- "Newspaper",
- "Pillow",
- "Water",
- )
- company_nouns = (
- "Century",
- "City",
- "Crown",
- "Dragon",
- "Empire",
- "Genesis",
- "Gold",
- "King",
- "Liberty",
- "Millennium",
- "Morning",
- "Silver",
- "Star",
- "State",
- "Summit",
- "Sun",
- "Union",
- "World",
- )
- company_adjectives = (
- "Advanced",
- "Rising",
- "Double",
- "Triple",
- "Quad",
- "Allied",
- "Cyber",
- "Sovereign",
- "Great",
- "Far",
- "Northern",
- "Southern",
- "Eastern",
- "Western",
- "First",
- "Filipino",
- "Grand",
- "Manila",
- "Mega",
- "Metro",
- "Global",
- "Pacific",
- "Oriental",
- "Philippine",
- "Prime",
- )
-
- def company_type(self) -> str:
- return self.random_element(self.company_types)
-
- def random_company_adjective(self) -> str:
- return self.random_element(self.company_adjectives)
-
- def random_company_noun_chain(self) -> str:
- return " ".join(self.random_elements(self.company_nouns, length=self.random_int(1, 2), unique=True))
-
- def random_company_product(self) -> str:
- return self.random_element(self.company_products)
-
- def random_company_acronym(self) -> str:
- letters = self.random_letters(self.random_int(2, 4))
- return "".join(letters).upper()
diff --git a/venv/lib/python3.11/site-packages/faker/providers/company/en_PH/__pycache__/__init__.cpython-311.pyc b/venv/lib/python3.11/site-packages/faker/providers/company/en_PH/__pycache__/__init__.cpython-311.pyc
deleted file mode 100644
index becda13..0000000
--- a/venv/lib/python3.11/site-packages/faker/providers/company/en_PH/__pycache__/__init__.cpython-311.pyc
+++ /dev/null
Binary files differ