This is indeed meaningful. If you need a more templated and standardized mapping technique, I recommend using a lookup table combined with the XLOOKUP function instead of the SWITCH function. Below, I will explain how to do this:
First, create a new sheet named Mapping, which contains a simple two-column table. Column A is the original text, and Column B is the corresponding numbers. This table serves as a standard for all the mapping relationships you need. In other words, column A should include ALL the original text that might appear in the mapping task.

Now, return to your data sheet. In the cell where you need to perform the mapping (e.g., A2), enter the following formula, and drag it down:
=XLOOKUP(A2, Mapping!$A$2:$A$10, Mapping!$B$2:$B$10, 0)

In this formula, A2 is the lookup value, Mapping!$A$2:$A$10 is the lookup range (the "original text" column in the mapping table), Mapping!$B$2:$B$10 is the return range (the "numbers" column in the mapping table), and 0 is the default value if no match is found (optional parameter).
This way, whenever you need to map text to numbers, you only need to maintain the "Mapping" sheet without worrying about the formula itself. You can save the workbook containing the Mapping sheet as an Excel template.
I hope this will be helpful to you.