Text this: A lattice model for ferroelectric superlattices