in books in general perhaps but twain was more focused not on writing properly but in the vernacular he was considered a master of colloquial speech and storytelling rather than formal speech or writing also the huck finn and tom sawyer stories were set precivil war when the use of nigger was presumably more common