Publishing academic research on tweets


I am a linguist working on microblogging. Is it against twitter’s TOS to a) analyse and reproduce examples of tweets in my publications where I have not received permission from the specific user (impossible with very large corpora) b) anonymise the username of a tweet that I quote in a publication.