Function Repository Resource:

RandomPretentiousJobTitle

Source Notebook

Generate random pretentious job titles

Contributed by: Anton Antonov

ResourceFunction["RandomPretentiousJobTitle"][]

generates a random pretentious job title string.

ResourceFunction["RandomPretentiousJobTitle"][n]

generates n random pretentious job title strings.

ResourceFunction["RandomPretentiousJobTitle"][lang]

generates a random pretentious job title string in the language lang.

ResourceFunction["RandomPretentiousJobTitle"][lang,n]

generates n random pretentious job title strings in the language lang.

ResourceFunction["RandomPretentiousJobTitle"][All]

gives an association of associations of languages and job title parts.

Details and Options

ResourceFunction["RandomPretentiousJobTitle"] uses three sets of words for the generation of random pretentious job titles.
By default, three-word job titles are generated.
The option "NumberOfWords" can be used to control the number of words in the generated job titles.
The value given to the option "NumberOfWords" can be 1, 2, 3 or Automatic.

Examples

Basic Examples (2) 

Generate a random pretentious job title:

In[1]:=
SeedRandom[3];
ResourceFunction["RandomPretentiousJobTitle"][]
Out[2]=

Generate four random pretentious job titles:

In[3]:=
ResourceFunction["RandomPretentiousJobTitle"][4]
Out[3]=

Scope (3) 

Generate a list of random pretentious job titles with different numbers of words:

In[4]:=
SeedRandom[12];
ColumnForm@
 ResourceFunction["RandomPretentiousJobTitle"][8, "NumberOfWords" -> RandomChoice]
Out[5]=

Generate random pretentious job titles in Bulgarian:

In[6]:=
SeedRandom[33];
ColumnForm@
 ResourceFunction["RandomPretentiousJobTitle"]["Bulgarian", 8, "NumberOfWords" -> RandomChoice]
Out[7]=

All job title parts per language can be obtained with the argument All:

In[8]:=
Map[Length, ResourceFunction["RandomPretentiousJobTitle"][All], {2}]
Out[8]=

Options (2) 

NumberOfWords (2) 

The option "NumberOfWords" can be used to control the number of words in the generated job title:

In[9]:=
SeedRandom[16];
ResourceFunction["GridTableForm"][
 Map[{#, ResourceFunction["RandomPretentiousJobTitle"][
     "NumberOfWords" -> #]} &, {1, 2, 3, Automatic}], TableHeadings -> {"Option value", "Job title"}]
Out[10]=

If the option value is not one of the expected four values, then 3 is used:

In[11]:=
SeedRandom[32];
ResourceFunction["RandomPretentiousJobTitle"]["NumberOfWords" -> 5]
Out[12]=

Applications (1) 

RandomPretentiousJobTitle can be used to demonstrate certain statistical or data transformation functions. Here is an example with the resource function CrossTabulate:

In[13]:=
SeedRandom[99];
ResourceFunction["CrossTabulate"][
 StringSplit /@ ResourceFunction["RandomPretentiousJobTitle"][200, "NumberOfWords" -> 2]]
Out[14]=

Properties and Relations (2) 

Similar phrase strings can be produced using the built-in functions RandomWord and StringRiffle:

In[15]:=
SeedRandom[32];
ResourceFunction["RandomTabularDataset"][
 {6, {"By RandomPretentiousJobTitleTtile", "By RandomWord"}},
 "Generators" -> <| 1 -> (ResourceFunction["RandomPretentiousJobTitle"][#] &),
   2 -> (Table[StringRiffle[RandomWord[3], " "], #] &)
   |>]
Out[16]=

If the number of words needs to follow a particular distribution, that can be achieved using the built-in distribution functions (and Table or Map):

In[17]:=
SeedRandom[77];
res = Map[
   Quiet@ResourceFunction["RandomPretentiousJobTitle"][
      "NumberOfWords" -> #] &, RandomVariate[PoissonDistribution[2], 100]];
res[[1 ;; 3]]
Out[11]=

Here is the tally of the number of words in those generated pretentious job titles:

In[18]:=
Tally[Length@*StringSplit /@ res]
Out[18]=

Neat Examples (1) 

Produce a table of pretentious job titles along with statements to attribute to the respective job holders:

In[19]:=
SeedRandom[32];
ResourceFunction["RandomTabularDataset"][
 {6, {"By", "Statement"}},
 "Generators" -> <| 1 -> (ResourceFunction["RandomPretentiousJobTitle"][#] &),
   2 -> (Table[ResourceFunction["RandomFortune"][], #] &)
   |>]
Out[20]=

Publisher

Anton Antonov

Version History

  • 1.1.0 – 12 April 2021
  • 1.0.0 – 01 March 2021

Source Metadata

Related Resources

Author Notes

The three sets of words were taken from https://www.bull****job.com/title.

Please note that several characters of this site name have been modified to remove content some users may find offensive.

Unlike most Slavic languages, Bulgarian is an analytic language. Since English is also an analytic language, programming codes that generate pretentious job titles in English can be easily generalized to generate pretentious job titles in Bulgarian.

License Information