Pluralize.NET
0.1.84
See the version list below for details.
dotnet add package Pluralize.NET --version 0.1.84
NuGet\Install-Package Pluralize.NET -Version 0.1.84
<PackageReference Include="Pluralize.NET" Version="0.1.84" />
paket add Pluralize.NET --version 0.1.84
#r "nuget: Pluralize.NET, 0.1.84"
// Install Pluralize.NET as a Cake Addin #addin nuget:?package=Pluralize.NET&version=0.1.84 // Install Pluralize.NET as a Cake Tool #tool nuget:?package=Pluralize.NET&version=0.1.84
What is it?
This is a C# port of Blake Embrey's pluralize library which helps in pluralizing or singularizing any English word.
Why
I could not find a good C# alternative for converting words from singular to plural and vice versa. System.Data.Entity.Design.PluralizationServices.PluralizationService and Humanizer library did not meet the expectations (try 'shoes' or 'toes'). However this small but awesome Javascript libray pluralize worked very well for me and I decided to convert the code to C# and use it.
How
Install from NuGet
Using Package manager console
Install-Package Pluralize.NET
Using dotnet CLI
dotnet add package Pluralize.NET
Using paket CLI
paket add Pluralize.NET
Include using directive
using Pluralize.NET
Write code
var singular = new Pluralizer().Singularize("Horses");
var plural = new Pluralizer().Pluralize("Horse");
Profit!
Supported .NET Versions
The Nuget package supports the following .NET versions. This pretty much covers versions 4.0 and above. Please open an issue if you want to support any .NET version in particular.
- .NET 4.0
- .NET Standard 1.1
- .NET 4.5.1
- .NET 4.6
- .NET Standard 2.0
Licence
MIT - because the original project is MIT
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. 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. |
.NET Core | netcoreapp1.0 was computed. netcoreapp1.1 was computed. netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard1.1 is compatible. netstandard1.2 was computed. netstandard1.3 was computed. netstandard1.4 was computed. netstandard1.5 was computed. netstandard1.6 was computed. netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net40 is compatible. net403 was computed. net45 was computed. net451 is compatible. net452 was computed. net46 is compatible. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen30 was computed. tizen40 was computed. tizen60 was computed. |
Universal Windows Platform | uap was computed. uap10.0 was computed. |
Windows Phone | wpa81 was computed. |
Windows Store | netcore was computed. netcore45 was computed. netcore451 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.0
- No dependencies.
-
.NETFramework 4.5.1
- No dependencies.
-
.NETFramework 4.6
- No dependencies.
-
.NETStandard 1.1
- NETStandard.Library (>= 1.6.1)
-
.NETStandard 2.0
- No dependencies.
NuGet packages (55)
Showing the top 5 NuGet packages that depend on Pluralize.NET:
Package | Downloads |
---|---|
ksqlDb.RestApi.Client
ksqlDB.RestApi.Client is a C# LINQ-enabled client API for issuing and consuming ksqlDB push queries. You can continually process computations over unbounded streams of data. It also enables the execution of SQL statements via the Rest API such as inserting records into streams and creating tables, types, etc. or executing admin operations such as listing streams. Targets .NET 8, .NET 9, and .NET Standard 2.0. Documentation for the library can be found at https://github.com/tomasfabian/ksqlDB.RestApi.Client-DotNet/blob/main/README.md. |
|
Mcma.Core
Library containing type definitions and helper utilities for the MCMA framework |
|
Service.Extensions.Blazor.Components
Extensions to provide consistent configurations and patterns for your service. |
|
Indigina.Data.Ef
This NuGet package contains Entity Framework Data Access Layer for Indigina projects. |
|
Ophelia
Ophelia Framework |
GitHub repositories (6)
Showing the top 5 popular GitHub repositories that depend on Pluralize.NET:
Repository | Stars |
---|---|
PowerShell/PSScriptAnalyzer
Download ScriptAnalyzer from PowerShellGallery
|
|
cezarypiatek/MappingGenerator
:arrows_counterclockwise: "AutoMapper" like, Roslyn based, code fix provider that allows to generate mapping code in design time.
|
|
dotnetzoom/AspNetCore-WebApi-Course
🥇 Professional REST API design with ASP.NET Core WebAPI
|
|
babaktaremi/Clean-Architecture-Template
🧹 Ready to develop template based on clean architecture principles. Supports ASP NET Core Identity integrated with JWE tokens, OTP authentication, stand alone plugin development, CQRS pattern using MediatR library and dynamic permission management system out of the box
|
|
omid-ahmadpour/CleanArchitecture-Template
This stands as a comprehensive solution template that embodies the principles of Clean Architecture, seamlessly integrated with the prowess of CQRS implementation, all within the ASP.NET Core framework.
|