A more language-oriented rewording of the Dependency Inversion Principle might read as follows:

Only accept as input terms coming from your own language.