def std_abbrev(roll_for, abbrevs):
    """
    Standardize ability and skill notation to typical 5e abbreviations.
    roll_for: ability/skill being rolled for
    abbrevs: dict of {full names: abbreviated names}
    """

    if abbrevs.get(roll_for):
        return abbrevs[roll_for]

    return roll_for