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
- 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)