If it’s a standard table design, then each weapon will have a series of IDs that are really used, and then just a name column which is accessed via a lookup to show to the user.
If you’ve ever used the chrome shop plugin, then you often see the new weapons (where the author hasn’t matched a name yet), as the non-aliased names above, e.g. lasgun_p3_m3.
But thereafter, you can match the name to whatever text string you like - e.g. “display_name”. The web plug in still has the old names for example IDK why they’ve changed them; they don’t make weapon functionality recognition any easier.