def is_upper(self): return all( part.upper() == part for part in self.parts )
def is_camel(self): return all( index and part.title() == part or part.lower() == part for index, part in enumerate(self.parts) )
def is_lower(self): return all( part.lower() == part for part in self.parts )
def is_title(self): return all( part.title() == part for part in self.parts )