aboutsummaryrefslogtreecommitdiffstats
path: root/fuzzycat/cleanups.py
blob: c2e021d59c939f04b0e92668f81b8669c0d49e10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
"""
Various shared cleanup approaches.
"""

from fuzzycat.utils import (StringPipeline, normalize_ampersand, normalize_whitespace)

# These transformations should not affect the name or a journal.
basic = StringPipeline([
    str.lower,
    normalize_whitespace,
    normalize_ampersand,
    lambda v: v.rstrip("."),
])