Ted Sorensen, the admired longtime assistant to President John F. Kennedy who provided his chief with many of the words and thoughts that still resonate through American life, died Sunday at New York Presbyterian Hospital of complications from a stroke he suffered recently. He was 82.