Programming idioms#

#

in lieu of multi-line if/then/else#

def prose_rating
    return :really_pretentious if really_pretentious?
    return :somewhat_pretentious if somewhat_pretentious?
    ...
end

def really_pretentious?
    pretentious_density > 0.3 && informal_density < 0.2
end