Consider the following words:
impossible;
incorrect;
impatient;
illegal;
irregular;
The meaning of the prefixes is the same (negation the adverb), but they are still different prefixes.
How do I know which one to use? In other words, for an arbitrary adjective, how do I choose between "in-", "im-", "il-", and "ir-"?
The relevant discussion at ELU does not provide with any guideline.