Pluralize an English Word
Pluralize an English word. NOTE: If you find words that are exceptions and not handled correctly, please report them to support@chilkatsoft.com.
<% @CodePage = 65001 %>
<% Response.CodePage = 65001 %>
<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
<body>
<%
set cks = Server.CreateObject("Chilkat_9_5_0.CkString")
' Pluralize an English word.
' The string must contain a single word and leading/trailing spaces should be trimmed.
cks.Str = "leaf"
cks.Pluralize
' Prints leaves
Response.Write cks.Str & "<br>"
cks.Str = "component"
cks.Pluralize
' Prints components
Response.Write cks.Str & "<br>"
cks.Str = "peach"
cks.Pluralize
' Prints peaches
Response.Write cks.Str & "<br>"
cks.Str = "penny"
cks.Pluralize
' Prints pennies
Response.Write cks.Str & "<br>"
%>
</body>
</html>
|