# EntityMatch

A scored reading and its coordinates in the source text.

Class 

`OfficeIMO.Entities`

**Namespace**

`OfficeIMO.Entities`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[EntityMatch.cs:69](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Entities/EntityMatch.cs#L69)

**Modifiers**

sealed

A scored reading and its coordinates in the source text.

## Inheritance

- object
- EntityMatch

## Usage

Explore 5 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 3

- Property [EntityFindResult.Matches](/api/core/officeimo-entities-entityfindresult/#property-matches)
- Property [EntityMatch.Alternatives](/api/core/officeimo-entities-entitymatch/#property-alternatives)
- Property [EntityMatch.Contained](/api/core/officeimo-entities-entitymatch/#property-contained)

### Accepted by parameters 2

- Method [EntityMasker.Mask](/api/core/officeimo-entities-entitymasker/#method-mask-string-collections-generic-ienumerable-officeimo-entities-entitymatch) parameter `matches`
- Method [EntityMasker.Pseudonymize](/api/core/officeimo-entities-entitymasker/#method-pseudonymize-string-collections-generic-ienumerable-officeimo-entities-entitymatch-officeimo-entities-entitymaskoptions) parameter `matches`

Filter members 

Show inherited

## Methods

`public override string ToString()` [#](#method-tostring)

[EntityMatch.cs:69](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Entities/EntityMatch.cs#L69)

Returns a string that represents the current object.

Returns

`string` A string that represents the current object.

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

## Properties

`public int Start { get; }` [#](#property-start)

[EntityMatch.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Entities/EntityMatch.cs#L29)

UTF-16 offset relative to the first source segment.

`public int Length { get; }` [#](#property-length)

[EntityMatch.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Entities/EntityMatch.cs#L31)

UTF-16 length in the first source segment, including written separators.

`public EntityKind Kind { get; }` [#](#property-kind)

[EntityMatch.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Entities/EntityMatch.cs#L33)

Category of the recognized entity.

`public EntityScheme Scheme { get; }` [#](#property-scheme)

[EntityMatch.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Entities/EntityMatch.cs#L35)

Scheme that validated the reading.

`public string Normalized { get; }` [#](#property-normalized)

[EntityMatch.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Entities/EntityMatch.cs#L37)

Canonical value. This property may contain sensitive data.

`public EntityValidationResult Validation { get; }` [#](#property-validation)

[EntityMatch.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Entities/EntityMatch.cs#L39)

Validation details including the check outcome and provenance.

`public EntityCheckOutcome CheckDigit { get; }` [#](#property-checkdigit)

[EntityMatch.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Entities/EntityMatch.cs#L41)

Outcome of the applied check digit.

`public EntityCheckInfo? Check { get; }` [#](#property-check)

[EntityMatch.cs:43](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Entities/EntityMatch.cs#L43)

Checksum applied to this variant, if any.

`public EntityCheckProvenance CheckProvenance { get; }` [#](#property-checkprovenance)

[EntityMatch.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Entities/EntityMatch.cs#L45)

Publication status of the applied check.

`public double Confidence { get; }` [#](#property-confidence)

[EntityMatch.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Entities/EntityMatch.cs#L47)

Confidence assigned from the evidence, from zero to one.

`public EntityEvidence Evidence { get; }` [#](#property-evidence)

[EntityMatch.cs:49](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Entities/EntityMatch.cs#L49)

Evidence used to score this reading.

`public string? ContextKeyword { get; }` [#](#property-contextkeyword)

[EntityMatch.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Entities/EntityMatch.cs#L51)

The registered keyword that supported this reading, if any.

`public string? ContextLanguage { get; }` [#](#property-contextlanguage)

[EntityMatch.cs:53](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Entities/EntityMatch.cs#L53)

BCP 47 language of the context keyword, if any.

`public int SegmentIndex { get; }` [#](#property-segmentindex)

[EntityMatch.cs:55](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Entities/EntityMatch.cs#L55)

Zero-based index of the first source segment in this find result.

`public IReadOnlyList<EntityMatchPart> Parts { get; }` [#](#property-parts)

[EntityMatch.cs:57](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Entities/EntityMatch.cs#L57)

Ordered portions of the match, each using coordinates from its own input segment.

`public EntitySegmentLocation? Location { get; }` [#](#property-location)

[EntityMatch.cs:59](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Entities/EntityMatch.cs#L59)

Coordinates supplied by the host.

`public IReadOnlyList<EntityMatch> Alternatives { get; }` [#](#property-alternatives)

[EntityMatch.cs:61](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Entities/EntityMatch.cs#L61)

Competing readings of the same span.

`public IReadOnlyList<EntityMatch> Contained { get; }` [#](#property-contained)

[EntityMatch.cs:63](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Core/Entities/EntityMatch.cs#L63)

Readings of identifiers declared to be contained inside this span.

<!-- PowerForge markdown artifact sha256:15565ADD4049F97D52E5D67C0693BBDCD337E6C0D4DAF1DA744F6ECE7B4BE33F -->
