$word to plural/singular

Allows you to convert a text into a singular or plural form.


Example

Running this code will create a UI text box labeled "text" with the "#text" variable connected. The variable named "#Plural" will be set as Plural and "#Singular" will be set Singular. Then after, it will be linked to the "#text" variable.

This will load it as HTML.

This will be shown in the UBot browser.

ui text box("Text",#text)
set(#Plural,$plugin function("Data and Files Automation.dll", "$word to plural/singular", #text, "Plural"),"Global")
set(#Singular,$plugin function("Data and Files Automation.dll", "$word to plural/singular", #text, "Singular"),"Global")
load html("Plural: {#Plural}<br>Singular: {#Singular}")

Was this helpful?

Previous Article

$word count

Next Article

$word wrap