~ubuntu-branches/ubuntu/vivid/phabricator/vivid-proposed

« back to all changes in this revision

Viewing changes to libphutil/src/grammar/PhutilRealnameContextFreeGrammar.php

  • Committer: Package Import Robot
  • Author(s): Richard Sellam
  • Date: 2014-10-23 20:49:26 UTC
  • mfrom: (0.2.1) (0.1.1)
  • Revision ID: package-import@ubuntu.com-20141023204926-vq80u1op4df44azb
Tags: 0~git20141023-1
Initial release (closes: #703046)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
 
 
3
final class PhutilRealnameContextFreeGrammar
 
4
  extends PhutilContextFreeGrammar {
 
5
 
 
6
  protected function getRules() {
 
7
    return array(
 
8
      'start' => array(
 
9
        '[first] [last]',
 
10
        '[first] [last]',
 
11
        '[first] [last]',
 
12
        '[first] [last]',
 
13
        '[first] [last]',
 
14
        '[first] [last]',
 
15
        '[first] [last]',
 
16
        '[first] [last]',
 
17
        '[first] [last]-[last]',
 
18
        '[first] [middle] [last]',
 
19
        '[first] "[nick]" [last]',
 
20
        '[first] [particle] [particle] [particle]',
 
21
      ),
 
22
      'first' => array(
 
23
        'Mohamed',
 
24
        'Youssef',
 
25
        'Ahmed',
 
26
        'Mahmoud',
 
27
        'Mustafa',
 
28
        'Fatma',
 
29
        'Aya',
 
30
        'Noam',
 
31
        'Adam',
 
32
        'Lucas',
 
33
        'Noah',
 
34
        'Jakub',
 
35
        'Victor',
 
36
        'Harry',
 
37
        'Rasmus',
 
38
        'Nathan',
 
39
        'Emil',
 
40
        'Charlie',
 
41
        'Leon',
 
42
        'Dylan',
 
43
        'Alexander',
 
44
        'Emma',
 
45
        'Marie',
 
46
        'Lea',
 
47
        'Amelia',
 
48
        'Hanna',
 
49
        'Emily',
 
50
        'Sofia',
 
51
        'Julia',
 
52
        'Santiago',
 
53
        'Sebastian',
 
54
        'Olivia',
 
55
        'Madison',
 
56
        'Isabella',
 
57
        'Esther',
 
58
        'Anya',
 
59
        'Camila',
 
60
        'Jack',
 
61
        'Oliver',
 
62
      ),
 
63
      'nick' => array(
 
64
        'Buzz',
 
65
        'Juggernaut',
 
66
        'Haze',
 
67
        'Hawk',
 
68
        'Iceman',
 
69
        'Killer',
 
70
        'Apex',
 
71
        'Ocelot',
 
72
      ),
 
73
      'middle' => array(
 
74
        'Rose',
 
75
        'Grace',
 
76
        'Jane',
 
77
        'Louise',
 
78
        'Jade',
 
79
        'James',
 
80
        'John',
 
81
        'William',
 
82
        'Thomas',
 
83
        'Alexander',
 
84
      ),
 
85
      'last' => array(
 
86
        '[termlast]',
 
87
        '[termlast]',
 
88
        '[termlast]',
 
89
        '[termlast]',
 
90
        '[termlast]',
 
91
        '[termlast]',
 
92
        '[termlast]',
 
93
        '[termlast]',
 
94
        'O\'[termlast]',
 
95
        'Mc[termlast]',
 
96
      ),
 
97
      'termlast' => array(
 
98
        'Smith',
 
99
        'Johnson',
 
100
        'Williams',
 
101
        'Jones',
 
102
        'Brown',
 
103
        'Davis',
 
104
        'Miller',
 
105
        'Wilson',
 
106
        'Moore',
 
107
        'Taylor',
 
108
        'Anderson',
 
109
        'Thomas',
 
110
        'Jackson',
 
111
        'White',
 
112
        'Harris',
 
113
        'Martin',
 
114
        'Thompson',
 
115
        'Garcia',
 
116
        'Marinez',
 
117
        'Robinson',
 
118
        'Clark',
 
119
        'Rodrigues',
 
120
        'Lewis',
 
121
        'Lee',
 
122
        'Walker',
 
123
        'Hall',
 
124
        'Allen',
 
125
        'Young',
 
126
        'Hernandex',
 
127
        'King',
 
128
        'Wang',
 
129
        'Li',
 
130
        'Zhang',
 
131
        'Liu',
 
132
        'Chen',
 
133
        'Yang',
 
134
        'Huang',
 
135
        'Zhao',
 
136
        'Wu',
 
137
        'Zhou',
 
138
        'Xu',
 
139
        'Sun',
 
140
        'Ma',
 
141
      ),
 
142
      'particle' => array(
 
143
        'Wu',
 
144
        'Xu',
 
145
        'Ma',
 
146
        'Li',
 
147
        'Liu',
 
148
        'Shao',
 
149
        'Lin',
 
150
        'Khan',
 
151
      ),
 
152
    );
 
153
  }
 
154
 
 
155
}