Skip to main content

Words

The Words class transforms words from one form to another. For example, from singular to plural.

Assembly: ServiceStack.Text.dll
View Source
Declaration
public static class Words

Methods

Pluralize(String)

Return the plural of a word.

View Source
Declaration
public static string Pluralize(string word)
Returns

System.String: The plural form of <code data-dev-comment-type="paramref" class="paramref">word</code>

Parameters
TypeNameDescription
System.StringwordThe singular form

|

Singularize(String)

Return the singular of a word.

View Source
Declaration
public static string Singularize(string word)
Returns

System.String: The singular form of <code data-dev-comment-type="paramref" class="paramref">word</code>

Parameters
TypeNameDescription
System.StringwordThe plural form

|

Capitalize(String)

Capitalizes a word.

View Source
Declaration
public static string Capitalize(string word)
Returns

System.String: <code data-dev-comment-type="paramref" class="paramref">word</code> capitalized.

Parameters
TypeNameDescription
System.StringwordThe word to be capitalized.

|