Number:Length item state is including semantic info in dsl rules (ie item.state== "23 in")

Here an example for Number:Temperature, but the concept is the same:

This is sort-of explained in the documentation, though it’s easy to miss the significance.