me.datafox.dfxengine.text.api.PluralConverter Maven / Gradle / Ivy
package me.datafox.dfxengine.text.api;
/**
* A converter that converts a singular noun to a plural one.
*
* @author datafox
*/
@FunctionalInterface
public interface PluralConverter {
/**
* @param singular singular form of a noun
* @return plural form of the provided noun, or {@code null} if the singular is {@code null}
*/
String convert(String singular);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy