Convert word into number

How to convert word into number 
2 answers

Depends on your use case. For instance, if you want each word in the language to become a specific, unique number, then you could do something like this:


  •  Make an entity “Word” with at least the following attributes
    • Text
    • Number
  • When you want to convert a word to a number, do a retrieve from database of Word on the Text attribute (after a “tolowercase” or “touppercase”). 
    • If it exists, replace the word with the number attribute
    • If it doesn't exist yet, create the word in the database and determine a number (based on your use case. You'll likely want to make sure it's unique)



You can use a ChatGPT API or Module


or make a java action of this