Originally Posted by
tomgoodman
Merriam Webster says it is:
il·le·gal
Definition of illegal
sometimes disparaging + offensive
: a person who enters or lives in a country without the documentation required for legal entry or residence
Here is what Merrian Webster says:
https://www.merriam-webster.com/dictionary/illegal
It says it is an adjective.
It defines it as: not according to or authorized by law : unlawful, illicit; also : not sanctioned by official rules (as of a game)
Not sure where you got your part of speech or definition.