Quick test. What does 外来 (gairai) mean in Japanese?
A) Outpatient clinic B) Foreign, imported If you said A, you're right. If you said B, you're also right. Same word. Same kanji. No coincidence. 外来 (gairai) literally means "coming from outside. " 外 (gai) = outside 来 (rai) = to come Patients coming from outside the hospital? Outpatient. Words coming from outside Japan? Loanwords (外来語, gairaigo). Plants from another country? Invasive species (外来種, gairaishu). One word. Three contexts. Zero memorization once you see the logic.