に[基「もと」]づいて/に[基「もと」]づき/に[基「もと」]づく => Based on A N2
Based, Focused, Depending on
に基づいて => based on; on the basis of ~ N2
に代わって => instead of; replacing; on behalf of ~ N3
代わりに => instead of; as a substitute for​; in exchange for; in return for N3
[代「か」]わり => Not A, but B, B in place of A, Instead of A, B; In exchange for A, B N3
Comparison, Exchange