forked from elixirs/faker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
en.ex
95 lines (93 loc) · 1.55 KB
/
en.ex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
defmodule Faker.Fruit.En do
import Faker, only: [sampler: 2]
@moduledoc """
Functions for fruit data in English.
"""
@doc """
Returns a fruit.
## Examples
iex> Faker.Fruit.En.fruit
"Kiwano"
iex> Faker.Fruit.En.fruit
"Sugarcane"
iex> Faker.Fruit.En.fruit
"Pineapple"
iex> Faker.Fruit.En.fruit
"Lemon"
"""
@spec fruit() :: String.t()
sampler(:fruit, [
"Apple",
"Apricot",
"Avocado",
"Banana",
"Black currant",
"Blackberry",
"Blueberry",
"Carambola",
"Cashew apple",
"Cherry",
"Cloudberry",
"Coconut",
"Cranberry",
"Custard apple",
"Damson",
"Dragonfruit",
"Elderberry",
"Fig",
"Feijoa",
"Goji berry",
"Grapes",
"Grapefruit",
"Grewia",
"Guava",
"Hanepoot",
"Huckleberry",
"Jackfruit",
"Jamun",
"Jicama",
"Jujube",
"Kiwano",
"Kiwi",
"Lemon",
"Longan",
"Loquat",
"Lychee",
"Mango",
"Malay apple",
"Melon",
"Monk fruit",
"Mulberry",
"Muskmelon",
"Nance",
"Olive",
"Orange",
"Palm fruit",
"Papaya",
"Passion fruit",
"Peach",
"Pear",
"Persimmon",
"Pineapple",
"Plum",
"Pomegranate",
"Prickly pear",
"Pumpkin",
"Quince",
"Raspberry",
"Red currant",
"Sapodilla",
"Satsuma",
"Shaddock",
"Soursop",
"Spanish cherry",
"Strawberry",
"Sugarcane",
"Surinam cherry",
"Sweet lemon",
"Tamarillo",
"Tamarind",
"Tangerine",
"Watermelon"
])
end