Er... get used to it!!!!
Out of my six cats, only one is a hair-chewer, and it is NIGHTLY and has been this way for the past 11 years since she found me!!
K.C. is otherwise a normal, healthy cat. She just LOVES to rub her little face into my scalp (but ONLY at nighttime and ONLY in my bed) and chew on my hair.
The only problem I see is, if you have long hair (mine's over 2 feet long), kitty eats your hair and then gets a nice long hairy string going through her body.
Could be bad.
I have to sleep with my hair in a braid cuz of the length. If your hair is long enough, maybe you could do this? Unless your hair is short, then it won't matter.
I don't think it's to get attention. My cat Hammie chews on plastic cuz it feels good to his mouth (I can tell by his expression, he just *adores* plastic!). K.C. chews my hair cuz it's time to nuzzle & love, and I pet her til I fall asleep.
Every night, for the past 11 years.
So you might want to get used to it!!!
Just a sign of love for ya.