NameParserSharp 1.5.0

.NET Standard 2.0 .NET Framework 4.5
Install-Package NameParserSharp -Version 1.5.0
dotnet add package NameParserSharp --version 1.5.0
<PackageReference Include="NameParserSharp" Version="1.5.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NameParserSharp --version 1.5.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: NameParserSharp, 1.5.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install NameParserSharp as a Cake Addin
#addin nuget:?package=NameParserSharp&version=1.5.0

// Install NameParserSharp as a Cake Tool
#tool nuget:?package=NameParserSharp&version=1.5.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

NameParserSharp

Based upon nameparser 0.36, NameParserSharp is a C# library that parses a human name into constituent fields Title, First, Middle, Last, Suffix, and Nickname from the HumanName class. For example:

var jfk = new HumanName("president john 'jack' f kennedy");

// person.Title == "president"
// person.First == "john"
// person.Middle == "f"
// person.Last == "kennedy"
// person.Nickname == "jack"

var jfk_alt = new HumanName("kennedy, president john (jack) f");

Assert.AreEqual(jfk, jfk_alt);

NameParserSharp implements the functionality of the Python project on which it is based in a C# idiomatic way. It also,

  • eliminates nearly all regular expressions
  • adds unit tests
  • improves nickname handling to expand delimiters: John (Jack) Torrence == John 'Jack' Torrence == John "Jack" Torrence
  • parses out multiple names from a single string as you might expect, as in mr john and mrs jane doe

NameParserSharp is available as a NuGet package: Install-Package NameParserSharp

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.5

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on NameParserSharp:

Package Downloads
Lucifron.ReST.Library

library for lucifron datacite communication

PolarNameExplorer

Polar Name Explorer .NET Core Component is an class library allows your .NET applications to extract and parse names and surnames from text, get the gender of the name, and country of origine.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.5.0 25,664 1/17/2022
1.4.0 275,749 4/30/2019
1.3.0 8,291 2/19/2019
1.2.0 104,944 4/27/2016
1.1.0 1,268 2/15/2016
1.0.0.1 916 9/18/2015
1.0.0 892 9/18/2015