This component calculates 'ordinals' from integers, e.g. 1, 2, 3 becomes 1st, 2nd 3rd and so on
You can use this to build more user friendly messages in your output, e.g. instead of saying 'most similar compound number 3' you could say '3rd most similar compound'
You can calculate multiple ordinals at the same time and output the ordinal as a separate property to apply your own formatting (e.g. superscripts)
Any non-integer values will be ignored (e.g. 2.02th doesn't make much sense)
Currently only short ordinals (1st, 2nd 3rd etc) can be calculated in English (some languages use different representations). Long ordinals (first, second, third etc) and cardinals (one, two, three etc) cannot be calculated
You can use this to build more user friendly messages in your output, e.g. instead of saying 'most similar compound number 3' you could say '3rd most similar compound'
You can calculate multiple ordinals at the same time and output the ordinal as a separate property to apply your own formatting (e.g. superscripts)
Any non-integer values will be ignored (e.g. 2.02th doesn't make much sense)
Currently only short ordinals (1st, 2nd 3rd etc) can be calculated in English (some languages use different representations). Long ordinals (first, second, third etc) and cardinals (one, two, three etc) cannot be calculated