There is one more rule: articles have to match phonetically the following word, which can be the noun itself, or some other word (e.g. an adjective).
That's why there are seven articles all together (counting l' as an individual one), instead of only four (masculine singular, feminine singular, masculine plural, feminine plural).