NameNormalizer

esc.normalization.NameNormalizer
class NameNormalizer(val similarityConfig: SimilarityConfig)

This class provides the most needed methods for normalizing names.

Value parameters

similarityConfig

Optional. A SimilarityConfiguration.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def normalizeOrganisationName(fullName: String): NormalizedName

This method normalize an organisation name.

This method normalize an organisation name.

Value parameters

fullName

String representing a full organisation name. Including the legal form.

Attributes

Returns

returns a NormalizedName object.

def normalizePersonName(fullName: String): NormalizedName

This method normalize a person name.

This method normalize a person name.

Value parameters

fullName

String representing the full name of a person, including middle- und maiden name(s) etc. Without title.

Attributes

Returns

Returns a NormalizedName object.

def persNameElementReducedWeight(nameElement: String, initialWeight: Double): (Double, Boolean)

Return if a name element is reduced (true/false) and the reduced value. Min. value is 0.

Return if a name element is reduced (true/false) and the reduced value. Min. value is 0.

Value parameters

initialWeight

The weight the name element have yet.

nameElement

A single name element, e.g. john.

Attributes

Returns

Returns a Tuple with the new value and a Boolean if it was reduced.

Concrete fields