Spoken languages are much more complex than programming ones, and the vocabularies are immense. You're talking about 200K+ words in English alone.
Even then, I don't think the comparison works because programming ecosystems come and go. The rate of change is much faster than in human languages. So whether you specialise or try to be a generalist - you can undo that decision within the next decade.