• Stars
    star
    197
  • Rank 196,704 (Top 4 %)
  • Language
    C#
  • License
    MIT License
  • Created over 6 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

NaughtyStrings

Build status NuGet Status NuGet Status

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

Some example strings:

ثم نفس سقطت وبالتحديد،, جزيرتي باستخدام أن دنو. إذ هنا؟ الستار دا، الإطلاق عل إيو.
בְּרֵאשִׁית, בָּרָא אֱלֹהִים, אֵת הַשָּׁמַיִם, וְאֵת הָאָרֶץ
הָיְתָהtestالصفحات التّحول
﷽
ﷺ
مُنَاقَشَةُ سُبُلِ اِسْتِخْدَامِ اللُّغَةِ فِي النُّظُمِ الْقَائِمَةِ وَفِيم يَخُصَّ التَّطْبِيقَاتُ الْحاسُوبِيَّةُ، 
Ṱ̺̺̕o͞ ̷i̲̬͇̪͙n̝̗͕v̟̜̘̦͟o̶̙̰̠kè͚̮̺̪̹̱̤ ̖t̝͕̳̣̻̪͞h̼͓̲̦̳̘̲e͇̣̰̦̬͎ ̢̼̻̱̘h͚͎͙̜̣̲ͅi̦̲̣̰̤v̻͍e̺̭̳̪̰-m̢iͅn̖̺̞̲̯̰d̵̼̟͙̩̼̘̳ ̞̥̱̳̭r̛̗̘e͙p͠r̼̞̻̭̗e̺̠̣͟s̘͇̳͍̝͉e͉̥̯̞̲͚̬͜ǹ̬͎͎̟̖͇̤t͍̬̤͓̼̭͘ͅi̪̱n͠g̴͉ ͏͉ͅc̬̟h͡a̫̻̯͘o̫̟̖͍̙̝͉s̗̦̲.̨̹͈̣
̡͓̞ͅI̗̘̦͝n͇͇͙v̮̫ok̲̫̙͈i̖͙̭̹̠̞n̡̻̮̣̺g̲͈͙̭͙̬͎ ̰t͔̦h̞̲e̢̤ ͍̬̲͖f̴̘͕̣è͖ẹ̥̩l͖͔͚i͓͚̦͠n͖͍̗͓̳̮g͍ ̨o͚̪͡f̘̣̬ ̖̘͖̟͙̮c҉͔̫͖͓͇͖ͅh̵̤̣͚͔á̗̼͕ͅo̼̣̥s̱͈̺̖̦̻͢.̛̖̞̠̫̰
̗̺͖̹̯͓Ṯ̤͍̥͇͈h̲́e͏͓̼̗̙̼̣͔ ͇̜̱̠͓͍ͅN͕͠e̗̱z̘̝̜̺͙p̤̺̹͍̯͚e̠̻̠͜r̨̤͍̺̖͔̖̖d̠̟̭̬̝͟i̦͖̩͓͔̤a̠̗̬͉̙n͚͜ ̻̞̰͚ͅh̵͉i̳̞v̢͇ḙ͎͟-҉̭̩̼͔m̤̭̫i͕͇̝̦n̗͙ḍ̟ ̯̲͕͞ǫ̟̯̰̲͙̻̝f ̪̰̰̗̖̭̘͘c̦͍̲̞͍̩̙ḥ͚a̮͎̟̙͜ơ̩̹͎s̤.̝̝ ҉Z̡̖̜͖̰̣͉̜a͖̰͙̬͡l̲̫̳͍̩g̡̟̼̱͚̞̬ͅo̗͜.̟
̦H̬̤̗̤͝e͜ ̜̥̝̻͍̟́w̕h̖̯͓o̝͙̖͎̱̮ ҉̺̙̞̟͈W̷̼̭a̺̪͍į͈͕̭͙̯̜t̶̼̮s̘͙͖̕ ̠̫̠B̻͍͙͉̳ͅe̵h̵̬͇̫͙i̹͓̳̳̮͎̫̕n͟d̴̪̜̖ ̰͉̩͇͙̲͞ͅT͖̼͓̪͢h͏͓̮̻e̬̝̟ͅ ̤̹̝W͙̞̝͔͇͝ͅa͏͓͔̹̼̣l̴͔̰̤̟͔ḽ̫.͕
Z̮̞̠͙͔ͅḀ̗̞͈̻̗Ḷ͙͎̯̹̞͓G̻O̭̗̮
Ω≈ç√∫˜µ≤≥÷
åß∂ƒ©˙∆˚¬…æ
œ∑´®†¥¨ˆøπ“‘
¡™£¢∞§¶•ªº–≠
¸˛Ç◊ı˜Â¯˘¿
ÅÍÎÏ˝ÓÔÒÚÆ☃
Œ„´‰ˇÁ¨ˆØ∏”’
`⁄€‹›fifl‡°·‚—±

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.

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

snippet source | anchor

Icon

Naughty designed by AomAm from The Noun Project.

More Repositories

1

GraphQL.EntityFramework

Adds EntityFramework Core IQueryable support to GraphQL
C#
357
star
2

WinDebloat

A dotnet tool that removes the bloat in Windows
C#
303
star
3

MarkdownSnippets

Extracts snippets from code files and merges them into markdown documents.
C#
159
star
4

LocalDb

Provides a wrapper around SqlLocalDB to simplify running tests or samples that require a SQL Server Database
C#
148
star
5

XunitContext

Extends xUnit to expose extra context and simplify logging
C#
129
star
6

Polyfill

Source only package that exposes newer .net and C# features to older runtimes.
C#
93
star
7

WaffleGenerator

Produces text which, on first glance, looks like real, ponderous, prose; replete with clichés.
C#
84
star
8

CountryData

Provides a .net wrapper around the GeoNames Data
C#
64
star
9

Cymbal

An MSBuild Task to enable exception line numbers for references in a deployed app
C#
44
star
10

SetStartupProjects

Setting Visual Studio startup projects by hacking the suo
C#
42
star
11

GraphQL.Validation

Add FluentValidation support to GraphQL.net
C#
40
star
12

Replicant

A wrapper for HttpClient that caches to disk. Cached files, over the max specified, are deleted based on the last access times.
C#
31
star
13

PandocNet

Conversion of documents in .net via Pandoc.
C#
23
star
14

GitHubSync

A tool to help synchronizing specific files and folders across GitHub hosted repositories
C#
23
star
15

PackageUpdate

A dotnet tool that updates packages for all solutions in a directory.
C#
20
star
16

Delta

An opinionated approach to implementing a 304 Not Modified
C#
19
star
17

GraphQL.Attachments

Provides access to a HTTP stream in GraphQL
C#
17
star
18

Timestamp

Adds a build timestamp to an assembly.
C#
16
star
19

NodaTime.Bogus

Add support for NodaTime to Bogus.
C#
13
star
20

SimpleInfoName

Generates simple names for *Infos (types, parameters, properties, fields, and methods)
C#
13
star
21

SeqProxy

Enables writing seq logs by proxying requests through an ASP.NET Controller or Middleware.
C#
13
star
22

NullabilityInfo

Exposes top-level nullability information from reflection
C#
11
star
23

ExtendedFluentValidation

Extends FluentValidation with some more opinionated rules.
C#
8
star
24

Argon

Argon is a JSON framework for .NET. It is a hard fork of Newtonsoft.Json.
C#
8
star
25

ProjectDefaults

Pascal
3
star
26

scratch

C#
3
star
27

RoboBogus

C#
3
star
28

GitModTimes

C#
2
star
29

OssIndexClient

A .net client for OSSIndex (https://ossindex.sonatype.org/)
C#
2
star
30

.github

1
star
31

AsposeHelpers

C#
1
star
32

GitHubSync.TestRepository

1
star