I think the emerge command should have tab-completion to guess package names.
that already exists... part of the bash-completion package if I remember properly