over the years she had learned to keep this latter tendency in check , only because if she was not careful she knew that she would soon be imitating the accents and gestures of those to whom she was speaking .