The domain of the function is the set of all river names for which the function can return valid river length values. In this case, the domain includes "Rhine". The rule does not apply outside of this domain, such as for the other tested inputs (e.g., "Tokyo", "apple", "Zircon", etc.) which are all undefined.