Skip to main content
Version: 2.14.1

Humanizer

Humanizer Namespace

Classes
ByteSizeExtensionsProvides extension methods for ByteSize
CasingExtensionsApplyCase method to allow changing the case of a sentence easily
CollectionHumanizeExtensionsHumanizes an IEnumerable into a human readable list
DateHumanizeExtensionsHumanizes DateTime into human readable sentence
DateToOrdinalWordsExtensionsHumanizes DateTime into human readable sentence
EnglishArticleContains methods for removing, appending and prepending article prefixes for sorting strings ignoring the article.
EnumDehumanizeExtensionsContains extension methods for dehumanizing Enum string values.
EnumHumanizeExtensionsContains extension methods for humanizing Enums
HeadingExtensionsContains extensions to transform a number indicating a heading into the textual representation of the heading.
In
In.Eight
In.Five
In.Four
In.Nine
In.One
In.Seven
In.Six
In.Ten
In.Three
In.Two
InDate
InDate.Eight
InDate.Five
InDate.Four
InDate.Nine
InDate.One
InDate.Seven
InDate.Six
InDate.Ten
InDate.Three
InDate.Two
InflectorExtensionsInflector extensions
MetricNumeralExtensionsContains extension methods for changing a number to Metric representation (ToMetric) and from Metric representation back to the number (FromMetric)
NoMatchFoundExceptionThis is thrown on String.DehumanizeTo enum when the provided string cannot be mapped to the target enum
NumberToNumberExtensionsNumber to Number extensions
NumberToTimeSpanExtensionsNumber to TimeSpan extensions
NumberToWordsExtensionTransform a number into words; e.g. 1 => one
On
On.AprilProvides fluent date accessors for April
On.AugustProvides fluent date accessors for August
On.DecemberProvides fluent date accessors for December
On.FebruaryProvides fluent date accessors for February
On.JanuaryProvides fluent date accessors for January
On.JulyProvides fluent date accessors for July
On.JuneProvides fluent date accessors for June
On.MarchProvides fluent date accessors for March
On.MayProvides fluent date accessors for May
On.NovemberProvides fluent date accessors for November
On.OctoberProvides fluent date accessors for October
On.SeptemberProvides fluent date accessors for September
OnDate
OnDate.AprilProvides fluent date accessors for April
OnDate.AugustProvides fluent date accessors for August
OnDate.DecemberProvides fluent date accessors for December
OnDate.FebruaryProvides fluent date accessors for February
OnDate.JanuaryProvides fluent date accessors for January
OnDate.JulyProvides fluent date accessors for July
OnDate.JuneProvides fluent date accessors for June
OnDate.MarchProvides fluent date accessors for March
OnDate.MayProvides fluent date accessors for May
OnDate.NovemberProvides fluent date accessors for November
OnDate.OctoberProvides fluent date accessors for October
OnDate.SeptemberProvides fluent date accessors for September
OrdinalizeExtensionsOrdinalize extensions
PrepositionsExtensionsSystem.DateTime extensions related to spatial or temporal relations
RomanNumeralExtensionsContains extension methods for changing a number to Roman representation (ToRoman) and from Roman representation back to the number (FromRoman)
StringDehumanizeExtensionsContains extension methods for dehumanizing strings.
StringExtensionsExtension methods for String type.
StringHumanizeExtensionsContains extension methods for humanizing string values.
TimeOnlyToClockNotationExtensionsHumanizes TimeOnly into human readable sentence
TimeSpanHumanizeExtensionsHumanizes TimeSpan into human readable form
TimeUnitToSymbolExtensionsTransform a time unit into a symbol; e.g. Year => "a"
ToA portal to string transformation using IStringTransformer
ToQuantityExtensionsProvides extensions for formatting a System.String word as a quantity.
TruncateExtensionsAllow strings to be truncated
TruncatorGets a ITruncator
TupleizeExtensionsConvert int to named tuple strings (1 -> 'single', 2-> 'double' etc.). Only values 1-10, 100, and 1000 have specific names. All others will return 'n-tuple'.
Interfaces
ICulturedStringTransformerCan transform a string with the given culture
IStringTransformerCan transform a string
ITruncatorCan truncate a string.
Enums
ClockNotationRounding
EnglishArticlesDefinite and Indefinite English Articles
GrammaticalCaseOptions for specifying the desired grammatical case for the output words
GrammaticalGenderOptions for specifying the desired grammatical gender for the output words
HeadingStyleStyle for the cardinal direction humanization
LetterCasingOptions for specifying the desired letter casing for the output string
MetricNumeralFormatsFlags for formatting the metric representation of numerals.
OnNoMatchDictating what should be done when a match is not found - currently used only for DehumanizeTo
PluralityProvides hint for Humanizer as to whether a word is singular, plural or with unknown plurality
ShowQuantityAsEnumerates the ways of displaying a quantity value when converting a word to a quantity string.
TruncateFromTruncation location for humanizer
WordFormOptions for specifying the form of the word when different variations of the same word exists.