Rule driven nonsense generator in Java