Text this: Spike-timing-dependent plasticity and reliability optimization