Comparing the vocabulary of two individuals from different time periods and fields of expertise is challenging, but it is generally accepted that William Shakespeare had a vast vocabulary. As a playwright and poet, Shakespeare was known for his extensive use of language and the creation of numerous words and phrases that have become integral to the English language.
Albert Einstein, on the other hand, was a physicist and mathematician, and while he made significant contributions to scientific knowledge, his fame lies more in his theories and discoveries rather than his command of language.
It's important to note that vocabulary size cannot be precisely measured, and it's difficult to make a direct comparison between individuals who lived in different eras and had different areas of expertise. Both Shakespeare and Einstein were exceptional in their respective fields, but their contributions and talents lie in different domains.