What this suffix does
The suffix -ness takes an ADJECTIVE and turns it into an abstract noun: the name of that quality or state. From "happy" you get "happiness"; from "dark" you get "darkness"; from "kind" you get "kindness".
The meaning is always the same: "the state of being ___". happiness = the state of being happy. If you know the adjective, you know the noun.
Why it is so predictable
-ness is one of the most REGULAR suffixes in English: in the vast majority of cases you simply add -ness to the adjective with no other change.
sad → sadness
weak → weakness
ill → illness
There is only one extra rule to remember, the -y change, covered below. Apart from that, -ness is a plug-and-play suffix.
Watch out: -ness attaches to adjectives, not verbs
Do not mix up -ness with -tion. -tion comes from VERBS (educate → education). -ness comes from ADJECTIVES (happy → happiness).
If the base word describes what something is like (happy, dark, kind, weak), the abstract noun is almost always built with -ness. It is your default suffix for turning an adjective into "the quality of being that".