Pick dimensions based on text

Hello folks

Quick shout out to the community if anybody has ever built something that could solve that problem:

I am trying to have numbers applied to x and y inputs on a rectangle command, based on a text input.
I imagine that i could store that data in a tree associated with a characteristic (small, medium…) and extract that data based on a text box.

I know it’s not very clear but I am trying to write the problem with you folks.
Opinions ?

Here are a couple of methods:

dimensions_based_on_text_re.gh (11.7 KB)

-Kevin

Worked like a charm, thanks to @kev.r and @anon39580149
This community is incredible