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
Type | Name | Description |
---|---|---|
System.String | word | The 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
Type | Name | Description |
---|---|---|
System.String | word | The 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
Type | Name | Description |
---|---|---|
System.String | word | The word to be capitalized. |
|