A few years ago in my university, K. N. Toosi University, I was assigned a supervisor by the university. She suggested that I work on Natural language processing and I did so.
The problem is that I wrote the code and did every scientific part myself. It was half way through the work that I realized that she has very little knowledge about NLP and almost nothing about text summarization. She didn't provide any facilities or grants of any sort for me. I wrote the paper after graduation and she just proofread the work and she didn't add anything to the paper. Remember she just gave me some suggestions on changing the order of some parts.
Now the question is, does she deserve to have a name in my paper? Is it ethical to add someone's name as co-author just because they are your supervisor?
She and I had a falling out a few weeks back. I asked her two months ago to do the revisions by the journal and after all this time, she didn't do anything (I had personal issues and the journal didn't have much time to edit the paper). I got mad and told her everything about how she treated me and it is absolutely not ethical for someone to choose a field of work and not have any knowledge so the grad student has to do all of the work. She said and I quote "I don't need your paper and I will send an email to the journal saying I don't take responsibility for the paper". I told her it's fine by me and I won't publish the paper there. I emailed the editor and apologized for the problems. She told me it's fine if I have to submit it later or to another journal.