Table of Contents

Method Normalized

Namespace
MailFathom.Domain.Emails
Assembly
MailFathom.Domain.dll

Normalized(string?)

Reduces one written keyword to the form everything compares keywords in.

public static string? Normalized(string? keyword)

Parameters

keyword string

The keyword as somebody wrote it.

Returns

string

The comparison form, or null when the value is not a keyword this system keeps.

Remarks

This is the same reduction Create(IEnumerable<string>?) applies, published so that a caller filtering on a keyword folds its own value the way the stored ones were folded. Two implementations of it would be two answers to whether $Junk matches $junk, and only one of them would be the stored one.