Table of Contents

Class PluralConverter

Namespace
SunamoConverters.ConvertersSimple
Assembly
SunamoConverters.dll

Converts English words between singular and plural forms. This class is not static (unlike other converters) to avoid wasting resources at application startup when the class might not be used at all. Please try to create only one instance of this class.

public sealed class PluralConverter
Inheritance
PluralConverter
Inherited Members
Extension Methods

Constructors

PluralConverter()

Run initialization on this singleton class

public PluralConverter()

Methods

ConvertFrom(string)

Call this method to get the singular version of a plural English word.

public string ConvertFrom(string word)

Parameters

word string

The word to turn into a singular

Returns

string

The singular word

ConvertTo(string)

Call this method to get the properly pluralized English version of the word.

public string ConvertTo(string word)

Parameters

word string

The word needing conditional pluralization.

Returns

string

The pluralized word