  We define the notion of an almost polynomial identity of an associative
algebra $R$, and show that its existence implies the existence of an actual
polynomial identity of $R$. A similar result is also obtained for Lie algebras
and Jordan algebras. We also prove related quantitative results for simple and
semisimple algebras.
