usernames 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CHANGELOG.md +39 -0
- data/LICENSE.txt +21 -0
- data/README.md +362 -0
- data/SECURITY.md +42 -0
- data/config/locales/usernames.en.yml +72 -0
- data/config/locales/usernames.es.yml +51 -0
- data/config/locales/usernames.pt.yml +51 -0
- data/data/LICENSES/allprofanity.txt +24 -0
- data/data/LICENSES/big-username-blocklist.txt +25 -0
- data/data/LICENSES/corpora.txt +128 -0
- data/data/LICENSES/cuss.txt +25 -0
- data/data/LICENSES/django-registration.txt +33 -0
- data/data/LICENSES/dsojevic-profanity-list.txt +24 -0
- data/data/LICENSES/forwardemail.txt +24 -0
- data/data/LICENSES/friendly-words.txt +24 -0
- data/data/LICENSES/gitea.txt +23 -0
- data/data/LICENSES/gitlab.txt +31 -0
- data/data/LICENSES/iana-well-known-uris.txt +130 -0
- data/data/LICENSES/imsky-wordlists.txt +24 -0
- data/data/LICENSES/mottie-github-reserved-names.txt +24 -0
- data/data/LICENSES/obscenity.txt +27 -0
- data/data/LICENSES/petname.txt +218 -0
- data/data/LICENSES/rfc2142.txt +9 -0
- data/data/LICENSES/shouldbee.txt +25 -0
- data/data/LICENSES/usernames.txt +30 -0
- data/data/NOTICE +36 -0
- data/data/offensive/README.md +90 -0
- data/data/offensive/allowlist/en.txt +727 -0
- data/data/offensive/allowlist/es.txt +39 -0
- data/data/offensive/en.json +5680 -0
- data/data/offensive/es.json +1014 -0
- data/data/offensive/hate.yml +51 -0
- data/data/offensive/leet.yml +27 -0
- data/data/reserved/ALLOWLIST_EXCEPTIONS.txt +6 -0
- data/data/reserved/impersonation.txt +69 -0
- data/data/reserved/mailboxes.txt +77 -0
- data/data/reserved/system.txt +124 -0
- data/data/reserved/web.txt +962 -0
- data/data/words/adjectives.txt +367 -0
- data/data/words/animals.txt +253 -0
- data/lib/generators/usernames/availability_generator.rb +67 -0
- data/lib/generators/usernames/existing_schema.rb +85 -0
- data/lib/generators/usernames/install_generator.rb +241 -0
- data/lib/generators/usernames/install_messages.rb +63 -0
- data/lib/generators/usernames/locale_generator.rb +56 -0
- data/lib/generators/usernames/templates/add_username.rb.erb +53 -0
- data/lib/generators/usernames/templates/availability/_field.html.erb.tt +25 -0
- data/lib/generators/usernames/templates/availability/availability_controller.rb.tt +107 -0
- data/lib/generators/usernames/templates/availability/username_check_controller.js.tt +115 -0
- data/lib/generators/usernames/templates/usernames.rb +34 -0
- data/lib/tasks/usernames.rake +38 -0
- data/lib/usernames/adapters/moderate.rb +37 -0
- data/lib/usernames/audit/output.rb +51 -0
- data/lib/usernames/audit/values.rb +34 -0
- data/lib/usernames/audit.rb +230 -0
- data/lib/usernames/candidates.rb +64 -0
- data/lib/usernames/comparison/index_contract.rb +241 -0
- data/lib/usernames/comparison/index_expression.rb +183 -0
- data/lib/usernames/comparison.rb +127 -0
- data/lib/usernames/configuration.rb +197 -0
- data/lib/usernames/data.rb +205 -0
- data/lib/usernames/engine.rb +32 -0
- data/lib/usernames/errors.rb +16 -0
- data/lib/usernames/generator.rb +206 -0
- data/lib/usernames/model.rb +397 -0
- data/lib/usernames/normalizer.rb +51 -0
- data/lib/usernames/offensive/hate.rb +124 -0
- data/lib/usernames/offensive/lexicon.rb +156 -0
- data/lib/usernames/offensive/name.rb +254 -0
- data/lib/usernames/offensive.rb +136 -0
- data/lib/usernames/phrase.rb +68 -0
- data/lib/usernames/reserved/listing.rb +79 -0
- data/lib/usernames/reserved.rb +219 -0
- data/lib/usernames/result.rb +52 -0
- data/lib/usernames/rules/options.rb +175 -0
- data/lib/usernames/rules.rb +257 -0
- data/lib/usernames/unique_violation.rb +176 -0
- data/lib/usernames/validator.rb +61 -0
- data/lib/usernames/version.rb +5 -0
- data/lib/usernames/words.rb +13 -0
- data/lib/usernames.rb +138 -0
- data/sig/usernames.rbs +75 -0
- metadata +217 -0
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
petname (usr/share/petname/{small,medium}/*.txt) — https://github.com/dustinkirkland/petname
|
|
2
|
+
|
|
3
|
+
Copyright: 2014-2023, Dustin Kirkland <dustin.kirkland@gmail.com> (from upstream debian/copyright)
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the full text follows).
|
|
6
|
+
|
|
7
|
+
Apache-2.0 section 4 notices for this redistribution:
|
|
8
|
+
(a) this file is the copy of the License that accompanies the work;
|
|
9
|
+
(b) MODIFIED FILES: data/words/adjectives.txt and data/words/animals.txt are derived from
|
|
10
|
+
petname's word lists and were changed by the usernames project: intersected with or merged
|
|
11
|
+
into other lists, filtered for length, offensive substrings and a manual review, and
|
|
12
|
+
re-sorted (script/build_words_data.rb; details in data/NOTICE);
|
|
13
|
+
(c) upstream copyright notices are retained above;
|
|
14
|
+
(d) petname ships no NOTICE file, so there are no NOTICE contents to reproduce.
|
|
15
|
+
------------------------------------------------------------------------------
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
Apache License
|
|
19
|
+
Version 2.0, January 2004
|
|
20
|
+
http://www.apache.org/licenses/
|
|
21
|
+
|
|
22
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
23
|
+
|
|
24
|
+
1. Definitions.
|
|
25
|
+
|
|
26
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
27
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
28
|
+
|
|
29
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
30
|
+
the copyright owner that is granting the License.
|
|
31
|
+
|
|
32
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
33
|
+
other entities that control, are controlled by, or are under common
|
|
34
|
+
control with that entity. For the purposes of this definition,
|
|
35
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
36
|
+
direction or management of such entity, whether by contract or
|
|
37
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
38
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
39
|
+
|
|
40
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
41
|
+
exercising permissions granted by this License.
|
|
42
|
+
|
|
43
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
44
|
+
including but not limited to software source code, documentation
|
|
45
|
+
source, and configuration files.
|
|
46
|
+
|
|
47
|
+
"Object" form shall mean any form resulting from mechanical
|
|
48
|
+
transformation or translation of a Source form, including but
|
|
49
|
+
not limited to compiled object code, generated documentation,
|
|
50
|
+
and conversions to other media types.
|
|
51
|
+
|
|
52
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
53
|
+
Object form, made available under the License, as indicated by a
|
|
54
|
+
copyright notice that is included in or attached to the work
|
|
55
|
+
(an example is provided in the Appendix below).
|
|
56
|
+
|
|
57
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
58
|
+
form, that is based on (or derived from) the Work and for which the
|
|
59
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
60
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
61
|
+
of this License, Derivative Works shall not include works that remain
|
|
62
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
63
|
+
the Work and Derivative Works thereof.
|
|
64
|
+
|
|
65
|
+
"Contribution" shall mean any work of authorship, including
|
|
66
|
+
the original version of the Work and any modifications or additions
|
|
67
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
68
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
69
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
70
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
71
|
+
means any form of electronic, verbal, or written communication sent
|
|
72
|
+
to the Licensor or its representatives, including but not limited to
|
|
73
|
+
communication on electronic mailing lists, source code control systems,
|
|
74
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
75
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
76
|
+
excluding communication that is conspicuously marked or otherwise
|
|
77
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
78
|
+
|
|
79
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
80
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
81
|
+
subsequently incorporated within the Work.
|
|
82
|
+
|
|
83
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
84
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
85
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
86
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
87
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
88
|
+
Work and such Derivative Works in Source or Object form.
|
|
89
|
+
|
|
90
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
91
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
92
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
93
|
+
(except as stated in this section) patent license to make, have made,
|
|
94
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
95
|
+
where such license applies only to those patent claims licensable
|
|
96
|
+
by such Contributor that are necessarily infringed by their
|
|
97
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
98
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
99
|
+
institute patent litigation against any entity (including a
|
|
100
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
101
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
102
|
+
or contributory patent infringement, then any patent licenses
|
|
103
|
+
granted to You under this License for that Work shall terminate
|
|
104
|
+
as of the date such litigation is filed.
|
|
105
|
+
|
|
106
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
107
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
108
|
+
modifications, and in Source or Object form, provided that You
|
|
109
|
+
meet the following conditions:
|
|
110
|
+
|
|
111
|
+
(a) You must give any other recipients of the Work or
|
|
112
|
+
Derivative Works a copy of this License; and
|
|
113
|
+
|
|
114
|
+
(b) You must cause any modified files to carry prominent notices
|
|
115
|
+
stating that You changed the files; and
|
|
116
|
+
|
|
117
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
118
|
+
that You distribute, all copyright, patent, trademark, and
|
|
119
|
+
attribution notices from the Source form of the Work,
|
|
120
|
+
excluding those notices that do not pertain to any part of
|
|
121
|
+
the Derivative Works; and
|
|
122
|
+
|
|
123
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
124
|
+
distribution, then any Derivative Works that You distribute must
|
|
125
|
+
include a readable copy of the attribution notices contained
|
|
126
|
+
within such NOTICE file, excluding those notices that do not
|
|
127
|
+
pertain to any part of the Derivative Works, in at least one
|
|
128
|
+
of the following places: within a NOTICE text file distributed
|
|
129
|
+
as part of the Derivative Works; within the Source form or
|
|
130
|
+
documentation, if provided along with the Derivative Works; or,
|
|
131
|
+
within a display generated by the Derivative Works, if and
|
|
132
|
+
wherever such third-party notices normally appear. The contents
|
|
133
|
+
of the NOTICE file are for informational purposes only and
|
|
134
|
+
do not modify the License. You may add Your own attribution
|
|
135
|
+
notices within Derivative Works that You distribute, alongside
|
|
136
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
137
|
+
that such additional attribution notices cannot be construed
|
|
138
|
+
as modifying the License.
|
|
139
|
+
|
|
140
|
+
You may add Your own copyright statement to Your modifications and
|
|
141
|
+
may provide additional or different license terms and conditions
|
|
142
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
143
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
144
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
145
|
+
the conditions stated in this License.
|
|
146
|
+
|
|
147
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
148
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
149
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
150
|
+
this License, without any additional terms or conditions.
|
|
151
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
152
|
+
the terms of any separate license agreement you may have executed
|
|
153
|
+
with Licensor regarding such Contributions.
|
|
154
|
+
|
|
155
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
156
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
157
|
+
except as required for reasonable and customary use in describing the
|
|
158
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
159
|
+
|
|
160
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
161
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
162
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
163
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
164
|
+
implied, including, without limitation, any warranties or conditions
|
|
165
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
166
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
167
|
+
appropriateness of using or redistributing the Work and assume any
|
|
168
|
+
risks associated with Your exercise of permissions under this License.
|
|
169
|
+
|
|
170
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
171
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
172
|
+
unless required by applicable law (such as deliberate and grossly
|
|
173
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
174
|
+
liable to You for damages, including any direct, indirect, special,
|
|
175
|
+
incidental, or consequential damages of any character arising as a
|
|
176
|
+
result of this License or out of the use or inability to use the
|
|
177
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
178
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
179
|
+
other commercial damages or losses), even if such Contributor
|
|
180
|
+
has been advised of the possibility of such damages.
|
|
181
|
+
|
|
182
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
183
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
184
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
185
|
+
or other liability obligations and/or rights consistent with this
|
|
186
|
+
License. However, in accepting such obligations, You may act only
|
|
187
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
188
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
189
|
+
defend, and hold each Contributor harmless for any liability
|
|
190
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
191
|
+
of your accepting any such warranty or additional liability.
|
|
192
|
+
|
|
193
|
+
END OF TERMS AND CONDITIONS
|
|
194
|
+
|
|
195
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
196
|
+
|
|
197
|
+
To apply the Apache License to your work, attach the following
|
|
198
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
199
|
+
replaced with your own identifying information. (Don't include
|
|
200
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
201
|
+
comment syntax for the file format. We also recommend that a
|
|
202
|
+
file or class name and description of purpose be included on the
|
|
203
|
+
same "printed page" as the copyright notice for easier
|
|
204
|
+
identification within third-party archives.
|
|
205
|
+
|
|
206
|
+
Copyright [yyyy] [name of copyright owner]
|
|
207
|
+
|
|
208
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
209
|
+
you may not use this file except in compliance with the License.
|
|
210
|
+
You may obtain a copy of the License at
|
|
211
|
+
|
|
212
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
213
|
+
|
|
214
|
+
Unless required by applicable law or agreed to in writing, software
|
|
215
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
216
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
217
|
+
See the License for the specific language governing permissions and
|
|
218
|
+
limitations under the License.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
RFC 2142, "Mailbox Names for Common Services, Roles and Functions" (D. Crocker, May 1997)
|
|
2
|
+
https://www.rfc-editor.org/rfc/rfc2142.txt
|
|
3
|
+
------------------------------------------------------------------------------
|
|
4
|
+
|
|
5
|
+
Only the 15 mailbox names the RFC specifies are used (abuse ftp hostmaster info marketing news
|
|
6
|
+
noc postmaster sales security support usenet uucp webmaster www). They are standards facts, not
|
|
7
|
+
copyrightable expression; no RFC text is reproduced. The RFC's own status notice reads:
|
|
8
|
+
"Distribution of this memo is unlimited." (RFC 2142 predates the IETF Trust Legal Provisions and
|
|
9
|
+
carries no other licence statement.)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
shouldbee/reserved-usernames — https://github.com/shouldbee/reserved-usernames
|
|
2
|
+
(The upstream copyright line names a year and no holder; it is reproduced exactly.)
|
|
3
|
+
------------------------------------------------------------------------------
|
|
4
|
+
|
|
5
|
+
The MIT License (MIT)
|
|
6
|
+
|
|
7
|
+
Copyright (c) 2014
|
|
8
|
+
|
|
9
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
10
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
11
|
+
in the Software without restriction, including without limitation the rights
|
|
12
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
14
|
+
furnished to do so, subject to the following conditions:
|
|
15
|
+
|
|
16
|
+
The above copyright notice and this permission notice shall be included in all
|
|
17
|
+
copies or substantial portions of the Software.
|
|
18
|
+
|
|
19
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
20
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
25
|
+
SOFTWARE.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
usernames — this gem's own curation (https://github.com/rameerez/usernames)
|
|
2
|
+
|
|
3
|
+
Covers: the hand-typed reserved-word facts (impersonation roles; code sentinels; mention words;
|
|
4
|
+
Windows device names and accounts; Debian/systemd users; Rails, Hotwire and engine routes — each
|
|
5
|
+
retyped from public facts, see the block comments; no GPL/AGPL file was copied), the es offensive
|
|
6
|
+
tiers, data/offensive/hate.yml and leet.yml, the Wikipedia-verified names in the en allowlist
|
|
7
|
+
(names as facts), the es allowlist, and the selection/curation of every list.
|
|
8
|
+
------------------------------------------------------------------------------
|
|
9
|
+
|
|
10
|
+
The MIT License (MIT)
|
|
11
|
+
|
|
12
|
+
Copyright (c) 2026 Javi R
|
|
13
|
+
|
|
14
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
15
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
16
|
+
in the Software without restriction, including without limitation the rights
|
|
17
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
18
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
19
|
+
furnished to do so, subject to the following conditions:
|
|
20
|
+
|
|
21
|
+
The above copyright notice and this permission notice shall be included in
|
|
22
|
+
all copies or substantial portions of the Software.
|
|
23
|
+
|
|
24
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
25
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
26
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
27
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
28
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
29
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
30
|
+
THE SOFTWARE.
|
data/data/NOTICE
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
usernames — bundled data notices
|
|
2
|
+
================================
|
|
3
|
+
|
|
4
|
+
Every word list under data/ is built from the sources below by the scripts in script/
|
|
5
|
+
(build_reserved_data.rb, build_offensive_data.rb, build_words_data.rb). Each source's full
|
|
6
|
+
licence text and copyright line is in data/LICENSES/<name>.txt. Revisions are the HEAD commit
|
|
7
|
+
of each upstream repository on the retrieval date, 2026-10-27 (the date the source files were
|
|
8
|
+
downloaded); the last commit touching the file used is given too
|
|
9
|
+
where it differs. Nothing GPL, AGPL, CC-BY, CC-BY-NC or unlicensed is vendored: words from such
|
|
10
|
+
sources (Mastodon, Discourse, Misskey, Debian base-passwd, Microsoft Learn) appear only as short
|
|
11
|
+
retyped facts under the `usernames` row.
|
|
12
|
+
|
|
13
|
+
One row per source:
|
|
14
|
+
Columns: name | URL | pinned revision | licence | what was taken | transformation
|
|
15
|
+
|
|
16
|
+
big-username-blocklist | https://github.com/marteinn/The-Big-Username-Blocklist | c5d456f6af0285931c85e08d53ed7e1ac35d31fc (list_raw.txt: 1776a3b6385aae1677bd7e5d9ee47790ed19cf25, 2021-02-13) | MIT, (c) 2015-2021 Martin Sandström | list_raw.txt (541 words) | lowercased; dropped HTTP status codes, entries of 1-2 characters, first names/surnames and words already in another category → data/reserved/web.txt
|
|
17
|
+
shouldbee | https://github.com/shouldbee/reserved-usernames | 0302214e8c1363fc5877ce3343ef6262e8852e96 (reserved-usernames.txt: 60e53759220f229e246023571d10b19676efe64b, 2020-03-19) | MIT, (c) 2014 (no holder named upstream) | reserved-usernames.txt (603 words) | as above, plus company/product names (facebook, github, twitter, java, python, ...), the typo `iamges` and first names (nick, mac, page, price, win, old, list, ping) removed → web.txt
|
|
18
|
+
mottie-github-reserved-names | https://github.com/Mottie/github-reserved-names | 1a017f43777cc5c2ed2992a3d81862fbe325c21b (reserved-names.json: 2b6c209853207ee0ac015486fe1cb1a18d11f848, 2026-05-28) | MIT, (c) Rob Garrison | reserved-names.json (302 entries) | HTTP codes, GitHub-only pages (hovercards, codespaces, copilot, gist, ...) and product names removed → web.txt
|
|
19
|
+
gitlab | https://gitlab.com/gitlab-org/gitlab | 47dedfb0a40c303092dc16d44f728c67b5c6512e (lib/gitlab/path_regex.rb, 2026-10-23) | MIT Expat (content outside ee/ and doc/), (c) 2011-present GitLab Inc. | TOP_LEVEL_ROUTES + PROJECT_WILDCARD_ROUTES (59) | entries containing `/` and 1-character entries dropped → web.txt
|
|
20
|
+
gitea | https://github.com/go-gitea/gitea | f35c67bd79b3bff9c28eb8171d53586cc800bd5c (models/user/user.go: 1d8474ee1feb2ae744beb6d240eb6212469c71ee, 2026-10-24) | MIT, (c) 2016 The Gitea Authors, (c) 2015 The Gogs Authors | reservedUsernames in models/user/user.go (30) | `.`/`..` and `gitea-actions` dropped → web.txt (ghost → system.txt)
|
|
21
|
+
django-registration | https://github.com/ubernostrum/django-registration | ee9458a46403c46e7ea4440876f774a715bef047 (src/django_registration/validators.py: 9033b918052d322e199ebeb25d472118999fb23e, 2024-11-09) | BSD-3-Clause, (c) James Bennett and contributors | DEFAULT_RESERVED_NAMES (102) with its group rationale | split by group: special hostnames → system.txt; CA addresses, protocol hostnames, no-reply → mailboxes.txt; filenames and account paths → web.txt
|
|
22
|
+
forwardemail | https://github.com/forwardemail/reserved-email-addresses-list | d9e7397b4fa1476c5b76b2523281af4ed3281c07 (index.json: 2931ae92f72ac07bdbe39600183ba1347cf4bdda, 2025-06-30) | MIT, (c) 2020 Nick Baugh | ASCII base names of index.json, admin-list.json, no-reply-list.json (140) | the ~3,000 leet/homoglyph variants (acc0unt, bi1ling) dropped — folding is the matcher's job; role mailboxes → mailboxes.txt, generic words → web.txt
|
|
23
|
+
rfc2142 | https://www.rfc-editor.org/rfc/rfc2142.txt | RFC 2142 (May 1997, Standards Track) | IETF standards facts; "Distribution of this memo is unlimited" | the 15 mailbox names | none → mailboxes.txt
|
|
24
|
+
iana-well-known-uris | https://www.iana.org/assignments/well-known-uris/well-known-uris-1.csv | registry as retrieved 2026-10-27 (116 rows) | CC0-1.0 (IANA/IETF joint statement, 2021-11-10) | URI suffixes, permanent + provisional (102) | organisation/product names (ashrae, gs1resolver, terraform.json, amphtml, knx) dropped → web.txt
|
|
25
|
+
dsojevic-profanity-list | https://github.com/dsojevic/profanity-list | c27924319aa9bd6f917e3782b4f4b6604a50b652 (en.json, 2021-10-23) | MIT, (c) 2021 David Sojevic | en.json (434 entries: match patterns, severity, tags, exceptions) | re-tiered and reviewed 2026-10-27 (kike faggot chink paki coon gook wetback tranny chingchong neonazi → 4; jap wog → 3; spic stays 3; pansy cissy hermie santorum finocchio shota → 2); `negro`, `enby`, `cishet` removed; `rapist` split from `raping`; rape/raping/rapist segment_only; `*` expanded to 0-3 extra repeats; spaces/hyphens removed; emoji dropped; exceptions expanded with the term; dictionary exceptions added for promoted slurs → data/offensive/en.json; exceptions also → allowlist/en.txt
|
|
26
|
+
obscenity | https://github.com/jo3-l/obscenity | 32c9061c1ad18de43432e4e59084189628f2a2a4 (src/preset/english.ts: 0c752986aef1caaf30a3c2cfc4ebdc27f8b894a3, 2026-01-18) | MIT, (c) 2025 Joseph Liu | the 66 whitelisted terms of the English preset | kept only real words/names of >= 5 letters (fragments such as `an al`, `s hit`, `assem` dropped) → allowlist/en.txt
|
|
27
|
+
cuss | https://github.com/words/cuss | 6bab3fef250481e34ba55bc400fac5c6d25f1429 (es.js: d14479ad4ab7b42e63e1634e16c68c71cd8d9dbb, 2022-11-07) | MIT, (c) 2016 Titus Wormer | Spanish words (es.js, 650 rated) as attestation | hand-tiered severe/strong/mild with AllProfanity and a hand-reviewed list of severe candidates; ASCII-folded (ñ→n, accents stripped) → data/offensive/es.json (reviewed 2026-10-27; see data/offensive/README.md)
|
|
28
|
+
allprofanity | https://github.com/ayush-jadaun/AllProfanity | 96cda24c878310d9ad1ca9d8e40c109a931addac (src/languages/spanish-words.ts: 2df915c8c7cc6a348876da178486e875db4ecb77, 2025-04-26) | MIT, (c) 2025 Ayush Jadaun | Spanish words (216) as attestation | as cuss → es.json
|
|
29
|
+
friendly-words | https://github.com/glitchdotcom/friendly-words | f94b4639c71c26875f7684fa86a214c7f30deaad (words/predicates.txt: 524e8865110aebe2b4675e231b9cf87c3bbeda69, 2025-03-13) | MIT, (c) 2018 Glitch | words/predicates.txt (1,450) | intersected with petname adjectives; watch-list and reviewed words removed; offensive-substring filter → data/words/adjectives.txt
|
|
30
|
+
petname | https://github.com/dustinkirkland/petname | d263497a655beed5577f9592d766702194a4f2df (retrieved 2026-10-27) | Apache-2.0, (c) 2014-2023 Dustin Kirkland; no upstream NOTICE file | usr/share/petname/{small,medium}/adjectives.txt, small/names.txt | MODIFIED (Apache-2.0 §4(b)): intersected/merged with other lists, filtered (3-10 letters, offensive substrings, manual review), re-sorted → data/words/adjectives.txt, animals.txt
|
|
31
|
+
imsky-wordlists | https://github.com/imsky/wordlists | 6520a7c6cf9de8fed31c3acc197517836d663baf (retrieved 2026-10-27) | MIT, (c) 2017-2021 Ivan Malopinsky | nouns/{birds,fish,cats,dogs,monkeys,snakes,apex_predators}.txt | merged, filtered and reviewed → data/words/animals.txt
|
|
32
|
+
corpora | https://github.com/dariusk/corpora | 2e7adec11a0561696c236ae1fca82e88be173d42 (data/animals/common.json: 7cb3d18b49e2117f327c2fcd5504e072b4149e4c, 2022-12-31) | CC0-1.0, Darius Kazemi | data/animals/common.json (134) | multi-word entries dropped; merged, filtered and reviewed → data/words/animals.txt
|
|
33
|
+
usernames | https://github.com/rameerez/usernames | this repository | MIT, (c) 2026 Javi R | own curation: hand-typed reserved facts (Mastodon/Discourse/Misskey defaults, Slack/Mattermost mention words, Windows device names and accounts from Microsoft Learn, Debian base-passwd and systemd users, Rails/Hotwire/Devise/engine routes from their MIT sources, RFC 2606/6761 names), es tiers, hate.yml (meanings from the ADL, the Simon Wiesenthal Center and Wikipedia; nothing copied), leet.yml, Wikipedia-verified names in allowlist/en.txt (names as facts), allowlist/es.txt (Spanish words found in the FrequencyWords frequency list, as facts) | retyped, not copied; reasons in each block comment
|
|
34
|
+
|
|
35
|
+
Measurement corpora under test/corpora/ (US Census 2010 surnames, /usr/share/dict) are not part
|
|
36
|
+
of the gem and are documented in their own headers.
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# Offensive-word data
|
|
2
|
+
|
|
3
|
+
Built by `script/build_offensive_data.rb` (en, es, allowlists); `hate.yml` and `leet.yml` are
|
|
4
|
+
hand-written. Sources, revisions and licences: `data/NOTICE` and `data/LICENSES/`.
|
|
5
|
+
|
|
6
|
+
## Review status
|
|
7
|
+
|
|
8
|
+
Both languages ship reviewed, as of 2026-10-27:
|
|
9
|
+
|
|
10
|
+
- **en** — dsojevic/profanity-list's tiers, reviewed by the maintainers: slurs promoted to severe,
|
|
11
|
+
racial abuse moved out of the disabled-by-default tiers, identity words removed and real names
|
|
12
|
+
demoted to mild (see "en" below). Every decision is a line of `script/build_offensive_data.rb`.
|
|
13
|
+
- **es** — built from permissive sources and reviewed by a Spanish-speaking reviewer: `concha`,
|
|
14
|
+
`coger`, `huevos`, `semen`, `cipote` and `panchito` removed at every tier, `pija` demoted to mild.
|
|
15
|
+
|
|
16
|
+
`negro` is never blocked, in any locale, by decision: it is the Spanish word for black and a common
|
|
17
|
+
surname. Corrections and new languages are welcome; please include a source.
|
|
18
|
+
|
|
19
|
+
## `<locale>.json`
|
|
20
|
+
|
|
21
|
+
```json
|
|
22
|
+
{"term": "cunt", "severity": 4, "variants": ["cunnt", "cunts", "kunt", "..."],
|
|
23
|
+
"tags": ["general"], "exceptions": ["scunthorpe", "eduskunta", "..."]}
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
| severity | tier | matched as |
|
|
27
|
+
|---|---|---|
|
|
28
|
+
| 4 | severe | substring of a segment (terms of 4+ letters), and across separators; `"segment_only": true` → the segment must equal the term |
|
|
29
|
+
| 3 | strong | the segment equals the term (default mode `:strong` and stricter) |
|
|
30
|
+
| 1–2 | mild | the segment equals the term, only in `:mild` mode |
|
|
31
|
+
|
|
32
|
+
- `variants` are compact ASCII spellings (spaces, hyphens and dots removed) including stretched
|
|
33
|
+
letters (dsojevic's `*`, up to 3 extra repeats). **Leet-folded spellings are not stored**: the
|
|
34
|
+
matcher folds terms, variants, exceptions and allowlist entries with `leet.yml` at load time,
|
|
35
|
+
exactly as it folds the input.
|
|
36
|
+
- `exceptions` are term-scoped segment exemptions; `allowlist/<locale>.txt` exempts a segment
|
|
37
|
+
from every term of that locale. Neither applies to a match that spans a separator.
|
|
38
|
+
- No term or variant is ever `negro`, in any locale; the build aborts if one appears.
|
|
39
|
+
|
|
40
|
+
## en — dsojevic/profanity-list, reviewed
|
|
41
|
+
|
|
42
|
+
430 terms: 41 severe, 316 strong, 73 mild.
|
|
43
|
+
|
|
44
|
+
- **Severe** = dsojevic's severity-4 entries, plus the promoted slurs `kike faggot/fagot chink paki
|
|
45
|
+
coon gook wetback tranny`, plus `chingchong` and `neonazi` (dsojevic: 2). `spic` stays strong:
|
|
46
|
+
it is inside allspice, aspic and suspicious.
|
|
47
|
+
- **Strong** = dsojevic's severity 3, plus `jap` and `wog` (dsojevic: 1). Three letters, so they
|
|
48
|
+
are matched only as a whole segment: `japan`, `japanese` and `wogan` pass.
|
|
49
|
+
- **Mild** (off by default) = dsojevic's severity 1–2, plus words that are also real names or
|
|
50
|
+
ordinary words: `pansy` and `cissy` (given names), `hermie` (a nickname), `santorum` and
|
|
51
|
+
`finocchio` (surnames; finocchio is also Italian for fennel), and `shota` (Shōta, a common
|
|
52
|
+
Japanese given name).
|
|
53
|
+
- **Removed**: `enby` and `cishet`, identity terms people use for themselves, not slurs; and
|
|
54
|
+
`negro` (see above).
|
|
55
|
+
- `rape`, `rapist` (split out of dsojevic's `raping`) and `raping` are `segment_only`: as
|
|
56
|
+
substrings they would reject grape, therapist and scraping.
|
|
57
|
+
- Dictionary words a promoted slur would otherwise reject were added as exceptions of that term
|
|
58
|
+
(cocoon, snigger, pakistani, chinkapin, eduskunta, esophagotomy, …); see `EXTRA_EXCEPTIONS`.
|
|
59
|
+
|
|
60
|
+
## es — wooorm/cuss and AllProfanity, tiered by hand, reviewed
|
|
61
|
+
|
|
62
|
+
97 terms: 19 severe, 35 strong, 43 mild. Every term is attested in wooorm/cuss (es), AllProfanity
|
|
63
|
+
(spanish) or a hand-reviewed list of severe candidates; plural and gender forms of an attested word are
|
|
64
|
+
added as variants.
|
|
65
|
+
|
|
66
|
+
- **Severe (slurs only):** maricon, maricona, marikon, mariconazo, marica\*, puto\*, joto,
|
|
67
|
+
bujarron, machorra, marimacho, tortillera, bollera, travelo\*, sudaca, negrata, mongolico,
|
|
68
|
+
mongolo\*, sidoso, chinorris. `*` = `segment_only`, because each is inside an innocent word
|
|
69
|
+
(puto ⊂ computo/caputo, marica ⊂ tamaricaceae, travelo ⊂ travelogue, mongolo ⊂ mongoloid).
|
|
70
|
+
- **Strong:** vulgar and insulting words that are rarely anything else (mierda, joder, puta,
|
|
71
|
+
cono, culo, polla, verga, gilipollas, cabron, pendejo, chingar, …). The words inside innocent
|
|
72
|
+
ones (`puta` ⊂ computadora, `culo` ⊂ ridiculo, `cono` ⊂ economia) are never severe, never
|
|
73
|
+
substrings.
|
|
74
|
+
- **Mild:** everyday insults and words with an innocent primary meaning (idiota, imbecil,
|
|
75
|
+
capullo, paja, pito, zorra, retrasado, pinche, …).
|
|
76
|
+
- `subnormal` is strong although it is also an English word; `retrasado` is mild because it also
|
|
77
|
+
means "delayed"; `gabacho` is strong and `pinche` mild.
|
|
78
|
+
- **Left out on purpose:** `concha` (a common female name, Concepción, and a seashell), `coger`
|
|
79
|
+
(the everyday verb "to take" in Spain), `huevos` ("eggs"), `semen` (a Ukrainian first name),
|
|
80
|
+
`cipote` ("kid" in Central America), `panchito` (a nickname for Francisco), `moronegro`
|
|
81
|
+
(unattested, and contains `negro`), `moro` (a surname), `gringo`, and the hundreds of cuss
|
|
82
|
+
entries whose ordinary meaning dominates (alcornoque, leche, palo, pistola, cuchara, …).
|
|
83
|
+
|
|
84
|
+
## Allowlists
|
|
85
|
+
|
|
86
|
+
`allowlist/en.txt` (obscenity's whitelist, dsojevic's exceptions, and
|
|
87
|
+
Wikipedia-verified names) and `allowlist/es.txt` keep only real words and names of 5+ letters.
|
|
88
|
+
Rejected at build time: fragments (`an al`, `s hit`, `assem`, `nigg`), multi-word entries whose
|
|
89
|
+
join is not a word (`scunthorpe united` would otherwise exempt `scunthorpeunited`), unverified
|
|
90
|
+
rows, and any entry that is itself a term of the locale (`faggot`, `penis`, `whore`).
|