attention (deﬁnitely!), and scratching may just be a way of releasing built-up energy.
Whatever the reason for it, scratching is one of the least attractive cat habits, and the best solution (other than declawing) is to make a scratching post available to the cat. Some cats use them, others never do, but the best way to ensure that the post gets used is to introduce it while a cat is still a kitten.
Also, a kitten that has seen his mother use a scratching post is likely to use one, too. It’s worth noting that a scratching post needs to be in the center of things, not tucked away in a corner, since cats deﬁnitely prefer that their “grafﬁti” be easily seen.