I need a script that gives feature names to selected shapes.

I need the following script, is this possible?

1. Select multiple shapes
2. If the horizontal size of the shape's bounding box is smaller than 100 < size > 105, the feature name is given as "zi-100."

200<size <205 ramen 
Give it the name “zi-200”.

Is a script like this possible?