Skip to content

The SDK for Polar Name Explorer .NET Core Component. Contain developer focused examples, documentation and official bug tracker (GitHub Issues). 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 origin.

License

Notifications You must be signed in to change notification settings

polarsoftware/polar-name-explorer-sdk

Repository files navigation

Polar Name Explorer SDK

(The product is in the release candidate phase. Contact: getting help or [email protected])

The Polar Name Explorer SDK enables .NET developers to easily work with Polar Name Explorer .NET Core Component.

The SDK is an easy-to-use infrastructure containing developer focused examples, documentation (GitHub Wiki) and official bug tracker (GitHub Issues).

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

image

This is a paid commercial product. You can try this NuGet package for free for 30 days, after which you will need to purchase a license key to continue using it.
Version below 1.0 is the release candidate version and is not for commercial use.
Supported platforms: Version

Getting started

Install the package

.NET CLI

Install the package via .NET CLI,use the following command:

dotnet add package PolarNameExplorer

Package reference

To include the package directly into project file:

<PackageReference Include="PolarNameExplorer" Version="0.8.7" />

Package Manager Console

Within Visual Studio, use the Package Manager Console command:

Install-Package PolarNameExplorer

NuGet.org repository link:
Nuget Nuget

Examples

The following sections provide several code snippets covering some of the most common Polar Name Explorer tasks, including:

Extract name from text

Analytics analytics = new Analytics();
ResultNames resultNames = analytics.ExtractNames("My name is Mary Johnson, I'm from London, England ex-Europe.");
ParseName parseName = resultNames.ParseNames.FirstOrDefault();
Console.WriteLine($"Full Name: {parseName.FirstName + " " + parseName.LastName}");//"Mary Johnson"
Console.WriteLine($"FirstName: {parseName.FirstName}");//"Mary"
Console.WriteLine($"LastName: {parseName.LastName}");//"Johnson"
//Gender:            
Console.WriteLine($"Gender: {parseName.GenderData.Gender}");//"f"            
Console.WriteLine($"FemalePercent: {parseName.GenderData.FemalePercent}");
Console.WriteLine($"MalePercent: {parseName.GenderData.MalePercent}");

source of example

Parse full name

Analytics analytics = new Analytics();
ResultNames resultNames = analytics.ParseName("Mary Johnson");
ParseName parseName = resultNames.ParseNames.FirstOrDefault();
Console.WriteLine($"Full Name: {parseName.FirstName + " " + parseName.LastName}");//"Mary Johnson"
Console.WriteLine($"FirstName: {parseName.FirstName}");//"Mary"
Console.WriteLine($"LastName: {parseName.LastName}");//"Johnson"
//Gender:            
Console.WriteLine($"Gender: {parseName.GenderData.Gender}");//"f"            
Console.WriteLine($"FemalePercent: {parseName.GenderData.FemalePercent}");
Console.WriteLine($"MalePercent: {parseName.GenderData.MalePercent}");

Console.WriteLine("\nCountry First Name:");
CountryElement countryElement = parseName.CountryData.FirstNameCountryPhrases.First().CountryElements.First();
Console.WriteLine($"Country: {countryElement.Country}");
Console.WriteLine($"Frequency: {countryElement.Frequency}");
Console.WriteLine($"Certainty: {countryElement.Certainty}");
Console.WriteLine($"Percent: {countryElement.Percent}");
                       
Console.WriteLine("\nCountry Last Name:");
countryElement = parseName.CountryData.LastNameCountryPhrases.First().CountryElements.First();
Console.WriteLine($"Country: {countryElement.Country}");
Console.WriteLine($"Frequency: {countryElement.Frequency}");
Console.WriteLine($"Certainty: {countryElement.Certainty}");
Console.WriteLine($"Percent: {countryElement.Percent}");

source of example

Demo website

Try the functionality of the component through this demo website that uses the relase version of the component:
https://nameapp.polarsoftware.com

Troubleshooting

Exception handling

Polar Name Explorer .NET Core Component A exception is triggered when an operation specific to Polar Name Explorer has encountered an issue. The exception includes some contextual information to assist in understanding the context of the error and its relative severity.

Getting Help

Please use these community resources for getting help. We use the GitHub issues for tracking bugs and feature requests.

Opening Issues

If you encounter a bug with Polar Name Explorer SDK we would like to hear about it. Search the existing issues and try to make sure your problem doesn’t already exist before opening a new issue. It’s helpful if you include the version of Polar Name Explorer SDK and the OS you’re using. Please include a stack trace and reduced repro case when appropriate, too.

The GitHub issues are intended for bug reports and feature requests. For help and questions with using Polar Name Explorer SDK please make use of the resources listed in the Getting Help section. There are limited resources available for handling issues and by keeping the list of open issues clean we can respond in a timely manner.

Trial version and commercial license

Polar Name Explorer .NET Core Component is a commercial library. You are welcome to explore its functionality and get technical support from the team when you download this trial version.
Trial version has some limits such as: 30 days, uses only US name list, etc.

To use it commercially, you need to purchase a license (when we launch the release version). Feel free to review the Polar License Agreement to get acquainted with the full terms of use.
The libraries are subject of the license under which you've obtained the assemblies.

Website with a fully functional version of the component
You can try the full functionality of the component, release version, no trial version, on the website:
https://nameapp.polarsoftware.com

Note

Currently, the product is in the release candidate phase.
This repository does not contain the actual source code of the components.

Follow the information here on the GitHub repository Polar Name Explorer SDK.
If you have any questions feel free to contact us: [email protected], or find anything you want to know here: issues.

Licensing in brief

Commercial, 100% royalty free distribution, for desktop and server.
Polar Name Explorer .NET Core Component is a commercial class library: License link
License: Commercial

SDK source code examples:
License: MIT

About

The SDK for Polar Name Explorer .NET Core Component. Contain developer focused examples, documentation and official bug tracker (GitHub Issues). 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 origin.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published