NameParserSharp 1.5.0

.NET Standard 2.0 .NET Framework 4.5
dotnet add package NameParserSharp --version 1.5.0
NuGet\Install-Package NameParserSharp -Version 1.5.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="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
#r "nuget: NameParserSharp, 1.5.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.
// 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

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 net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.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 net481
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 (1)

Showing the top 1 popular GitHub repositories that depend on NameParserSharp:

Repository Stars
rmcrackan/Libation
Libation: Liberate your Library
Version Downloads Last updated
1.5.0 80,902 1/17/2022
1.4.0 348,165 4/30/2019
1.3.0 8,452 2/19/2019
1.2.0 111,659 4/27/2016
1.1.0 1,394 2/15/2016
1.0.0.1 1,029 9/18/2015
1.0.0 1,016 9/18/2015