Words make new words from old ones. This process is called derivation. It often adds parts like prefixes or suffixes. For example, 'happy' becomes 'unhappy' or 'happiness'. Derivation changes a word's job, like making an adjective into a noun. Adding '-ness' makes an adjective a noun. Adding '-ly' makes an adjective an adverb.
This is different from inflection. Inflection changes a word slightly but doesn't make a new word. For example, 'determine' becomes 'determined'. Derivation usually creates a different word. Inflection just makes a different form of the same word. Derivation can make new nouns or verbs. This process is called nominalization or verbalization.
Not all word parts work the same way. Some parts only work for certain word types. For example, '-er' often makes a noun from a verb (e.g., worker). Sometimes, changing a word's job without adding anything is derivation too.