Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Provides a strong typed .NET API for the Big List of Naughty Strings https://github.com/minimaxir/big-list-of-naughty-strings

License

Notifications You must be signed in to change notification settings

SimonCropp/NaughtyStrings

Repository files navigation

NaughtyStrings

Provides a strong typed .NET API for the Big List of Naughty Strings.

See Milestones for release notes.

Some example strings:

thm nfs sqTt wbltHdyd,, jzyrty bstkhdm 'n dnw. dh hn? lstr d, lTlq `l yw.
breASHiyt, baraA Aelohiym, Aet haSHamayim, vAet haAareTS
haytahtestlSfHt ltWHwl


munaqasha@u subuli istikhdami llWuGa@i fiy lnWuZumi lqay'ima@i wafiym yakhuSWa ltWaTbiyqatu lHsuwbiyWa@u,
To invoke the hive-mind representing chaos.
Invoking the feeling of c*1.000.000*haos.
The Nezperdian hive-*1.000.000*mind of chaos. *1.000.000*Zalgo.
He who *1.000.000*Waits Behind The Wall.
ZALGO
Oc~u<=>=/
assf(c).@!...ae
oe'(r)+Y="^op"'
!(tm)PSC/SSP*ao-
,,C*i~A-V?
AIII"OOOUAE
OE,,'%0VA"^O"'
`/EUR<>fifl++deg*,--+-

NaughtyStrings

https://nuget.org/packages/NaughtyStrings/

Usage

The entry type is a static class TheNaughtyStrings. It exposes all strings via TheNaughtyStrings.All and individual categories by name:

var items = TheNaughtyStrings.All.Take(10);
var emoji = TheNaughtyStrings.Emoji.Take(10);

snippet source | anchor

NaughtyStrings.Bogus

Extends Bogus to use Naughty Strings.

https://nuget.org/packages/NaughtyStrings.Bogus/

Usage

The entry extension method is Naughty(). It exposes all strings via .String() and individual categories by name:

var faker = new Faker<Target>()
.RuleFor(u => u.Property1, (f, u) => f.Naughty().String())
.RuleFor(u => u.Property2, (f, u) => f.Naughty().Emoji());

var target = faker.Generate();
Debug.WriteLine(target.Property1);
Debug.WriteLine(target.Property2);

snippet source | anchor

Usage in a test suite

The below example uses the MemberDataAttribute to consume all naughty strings from a helper class. See Creating parameterised tests and Working With InlineData, MemberData, ClassData for more information.

[Test]
public void Run()
{
foreach (var naughtyString in TheNaughtyStrings.All)
{
Debug.WriteLine(naughtyString);
}
}

snippet source | anchor

Icon

Naughty designed by AomAm from The Noun Project.

About

Provides a strong typed .NET API for the Big List of Naughty Strings https://github.com/minimaxir/big-list-of-naughty-strings

Resources

Readme

License

MIT license

Code of conduct

Code of conduct

Stars

Watchers

Forks

Sponsor this project

Contributors

Languages