examples/grams/bizbs.py
def make_present_participles(verbs):
    """Make the list of verbs into present participles

    E.g.:

        empower -> empowering
        drive -> driving
    """
    res = []
    for verb in verbs:
        parts = verb.split()
        if parts[0].endswith("e"):
            parts[0] = parts[0][:-1] + "ing"
        else:
            parts[0] = parts[0] + "ing"
        res.append(" ".join(parts))
    return res
def make_present_participles(verbs):
    """Make the list of verbs into present participles

    E.g.:

        empower -> empowering
        drive -> driving
    """
    res = []
    for verb in verbs:
        parts = verb.split()
        if parts[0].endswith("e"):
            parts[0] = parts[0][:-1] + "ing"
        else:
            parts[0] = parts[0] + "ing"
        res.append(" ".join(parts))
    return res
def make_present_participles ( verbs ) : res = [ ] for verb in verbs : parts = verb . split ( ) if parts [ 0 ] . endswith ( "e" ) : parts [ 0 ] = parts [ 0 ] [ : - 1 ] + "ing" else : parts [ 0 ] = parts [ 0 ] + "ing" res . append ( " " . join ( parts ) ) return res
Make the list of verbs into present participles

    E.g.:

        empower -> empowering
        drive -> driving
Make the list of verbs into present participles