Memory limitations are hidden in grammar