How would one be able to assign items a texture based upon their name?

Solution 1:

Each texture is assigned to each item, therefore this would not be possible without a mod. However you could make multiple items like "Green Elytra" and "Elytra" if the item you are basing the texture off of has multiple versions.