def METHOD_NAME(text_attr):
    def getter(self):
        return qualities.Requirements(getattr(self, text_attr))
    def setter(self, value):
        if isinstance(value, str):
            setattr(self, text_attr, value)
        else:
            setattr(self, text_attr, value.text)
    prop = hybrid_property(getter, setter)
    return prop