“凭名字”可以翻译为“by the name” 或者更自然地表达为“based on the name” 。
“by the name”常用于引出某个具体名称,例如:There's a man by the name of Smith waiting for you.(有个叫史密斯的人在等你。 )
“based on the name” 侧重于表达依据名字这一信息来做判断或采取行动,比如:We can't judge a person's ability based on the name.(我们不能仅凭名字来判断一个人的能力。 )