PluralizationService.IsSingular(String) Method

Definition

Determines whether the specified word is singular.

C#
public abstract bool IsSingular(string word);

Parameters

word
String

The value to be analyzed.

Returns

true if the word is singular; otherwise, false.

Remarks

The PluralizationService class applies English rules for constructing plural and singular forms of words. To extend the service to other languages, use the PluralizationService on the EntityModelSchemaGenerator class.

Both the IsSingular and IsPlural methods can return true for the same word. For example, both methods will return true for the word "fish".

Applies to

Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1