Bunkum.ProfanityFilter
1.0.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Bunkum.ProfanityFilter --version 1.0.0
NuGet\Install-Package Bunkum.ProfanityFilter -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Bunkum.ProfanityFilter" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Bunkum.ProfanityFilter" Version="1.0.0" />
<PackageReference Include="Bunkum.ProfanityFilter" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Bunkum.ProfanityFilter --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Bunkum.ProfanityFilter, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Bunkum.ProfanityFilter@1.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Bunkum.ProfanityFilter&version=1.0.0
#tool nuget:?package=Bunkum.ProfanityFilter&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Bunkum.ProfanityFilter
A wrapper around Profanity.Detector for Bunkum
Example usage
// Program.cs
BunkumHttpServer server = new();
server.AddProfanityService();
// FilterEndpoints.cs
[Endpoint("/censorSentence")]
[NullStatusCode(HttpStatusCode.BadRequest)]
public string? CensorSentence(RequestContext context, ProfanityService service)
{
string? input = context.QueryString.Get("input");
if (input == null) return null;
return service.CensorSentence(input);
}
AddProfanityService contains optional parameters to allow/deny certain phrases. You can use them like this:
server.AddProfanityService(new []{"f@ck"}, new []{"awjkdh"});
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net7.0
- Bunkum (>= 3.2.0)
- Profanity.Detector (>= 0.1.8)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.7.0 | 387 | 7/17/2024 |
| 4.6.0 | 171 | 7/11/2024 |
| 4.5.6 | 198 | 6/14/2024 |
| 4.5.5 | 216 | 5/23/2024 |
| 4.5.4 | 176 | 5/13/2024 |
| 4.5.3 | 149 | 5/13/2024 |
| 4.5.2 | 226 | 5/7/2024 |
| 4.5.1 | 252 | 4/30/2024 |
| 4.5.0 | 230 | 4/24/2024 |
| 4.4.5 | 293 | 2/19/2024 |
| 4.4.4 | 215 | 2/5/2024 |
| 4.4.3 | 298 | 12/4/2023 |
| 4.4.2 | 218 | 12/3/2023 |
| 4.4.1 | 218 | 11/26/2023 |
| 4.4.0 | 176 | 11/25/2023 |
| 4.3.3 | 302 | 10/28/2023 |
| 4.3.2 | 196 | 10/27/2023 |
| 4.3.1 | 262 | 10/22/2023 |
| 4.3.0 | 240 | 10/22/2023 |
| 4.2.3 | 216 | 10/21/2023 |
| 4.2.2 | 245 | 10/19/2023 |
| 4.2.1 | 225 | 10/18/2023 |
| 4.2.0 | 252 | 10/13/2023 |
| 4.1.0 | 210 | 10/12/2023 |
| 4.0.1 | 256 | 10/1/2023 |
| 4.0.0 | 222 | 10/1/2023 |
| 3.5.0 | 230 | 9/20/2023 |
| 1.0.0 | 549 | 5/27/2023 |