1. A method comprising: at a computer system comprising at least one processor and a memory storing computer programs for execution by the processor: receiving inputs from an application or framework that implements the user interface when at least one text string is too long to be displayed in a display element of the user interface, the inputs comprising the text string, an amount of available space in the display element, and an identification of the language of the text string; executing, by the processor, a text reduction algorithm on the text string; identifying one or more short forms of the text string that fit within the available space of the display element based on executing the text reduction algorithm; and communicating the identified short forms of the text string to the application or framework for display in the display element of the user interface.