def METHOD_NAME(self, t):
    if t == 'feature':
        return self.features
    elif t == 'bugfix':
        return self.bugfixes
    elif t == 'deprecation':
        return self.deprecations
    elif t == 'removal':
        return self.removals
    elif t == 'documentation':
        return self.documentations
    else:
        raise Exception("Unknown entry type %s!" % t)