def METHOD_NAME(text_attr):
    def getter(self):
        return CaseInsensitiveWord(getattr(self, text_attr))
    def setter(self, value):
        setattr(self, text_attr, value)
    return hybrid_property(getter, setter)