faker.providers.lorem.en_PH

Package Contents

Classes

EnUsProvider

Implement lorem provider for en_US locale.

LoremProvider

Implement lorem provider for la locale.

Provider

Implement lorem provider for en_PH locale.

class faker.providers.lorem.en_PH.EnUsProvider(generator: Any)

Bases: faker.providers.lorem.Provider

Implement lorem provider for en_US locale.

Word list is based on the source(s) below, and some words have been removed to make the word list appropriate for public testing.

Sources:

word_list = ('a', 'ability', 'able', 'about', 'above', 'accept', 'according', 'account', 'across', 'act',...
parts_of_speech: Dict[str, tuple]
class faker.providers.lorem.en_PH.LoremProvider(generator: Any)

Bases: faker.providers.lorem.Provider

Implement lorem provider for la locale.

word_list = ('a', 'ab', 'accusamus', 'accusantium', 'ad', 'adipisci', 'alias', 'aliquam', 'aliquid', 'amet',...
parts_of_speech: Dict[str, tuple]
class faker.providers.lorem.en_PH.Provider(generator: Any)

Bases: faker.providers.lorem.la.Provider

Implement lorem provider for en_PH locale.

This localized provider generates pseudo-Latin text when using the standard lorem provider methods, and the english_* methods are also provided for generating text in American English. Both languages are used in this locale for this purpose.

All the english_* methods use their corresponding standard lorem provider method under the hood with ext_word_list set to the EnUsLoremProvider’s word list.

english_word_list
english_word() str

Generate an English word.

english_words(nb: int = 3, unique: bool = False) List[str]

Generate a list of English words.

Sample

nb=5

Sample

nb=5, unique=True

english_sentence(nb_words: int = 6, variable_nb_words: bool = True) str

Generate a sentence in English.

Sample

nb_words=10

Sample

nb_words=10, variable_nb_words=False

english_sentences(nb: int = 3) List[str]

Generate a list of sentences in English.

Sample

nb=5

english_paragraph(nb_sentences: int = 3, variable_nb_sentences: bool = True) str

Generate a paragraph in English.

Sample

nb_sentences=5

Sample

nb_sentences=5, variable_nb_sentences=False

english_paragraphs(nb: int = 3) List[str]

Generate a list of paragraphs in English.

Sample

nb=5

english_text(max_nb_chars: int = 200) str

Generate a text string in English.

Sample

max_nb_chars=20

Sample

max_nb_chars=80

Sample

max_nb_chars=160

english_texts(nb_texts: int = 3, max_nb_chars: int = 200) List[str]

Generate a list of text strings in English.

Sample

nb_texts=5

Sample

nb_texts=5, max_nb_chars=50