Swahili literature has been an object of research by many western scholars since the 19th century. There is a debate regarding objectivity as a few scholars tried to establish a canon of Swahili writing. One of the main characteristics of Swahili literature is the relative heterogeneity of the Swahili language. One can find works written in Kiamu, Kimvita, Kipemba, Kiunguja, Kimrima, Kimtang'ata, Ki-Dar es Salaam and Ki-Nairobi which are considered varieties of Swahili. Swahili literature has been sometimes characterized as Islamic by some western scholars such as Jan Knappert. This approach was criticized by some experts such as Alamin Mazrui and Ibrahim Noor Shariff. In fact, :Category:Swahili poetry|Swahili poetry has produced many secular works by such poets as Muyaka bin Ghassany and Muhammad Kijuma. Because of this orientalist exploration and interest in the Swahili culture and language, most of the theses made on the Swahili literature have been done outside of the native place.
Classification
Swahili literature is classified into three genres: Riwaya, tamthilia and ushairi. Scholars, however, cite the problem in the literary classification because the sense of orientation associated to genre does not work properly for Swahili literature. The lack of clear and decisive parameters for genres can be illustrated by the convergence of oral and written literary forms. Rajmund Ohly noted that the names of genres are not well defined while denominations are too vague to distinguish class divisions.
Fiction
in Swahili literature mainly consisted of oral narrative traditions. It was not until the 1940s that Swahili started to have a written fiction. Modern Swahili literature is a direct result of the standardization of Swahili. Previously, writers would write in a particular dialect to show their attachment to a certain dialect, such as Lamu, Tanga or Mombasa. The normalization of Swahili motivated writers, such as George Mhina and Lyndon Harries to promote the development of Swahili by creating a literary corpus.
Poetry
Generally, Swahili poetry is derived from Arabic poetry. Swahili poetry or "ushairi" is still written in the traditional manner. According to an account, the traditional poetry is created to be sung rather than read. It began in the northern Kenya coastal towns of Lamu and Pate before spreading to Tanga Region, Zanzibar and other nearby areas. The poetic tradition is still alive today as pieces are often published in local newspapers and used in taraab songs and musical theater popular in Zanzibar and the Swahili coast. However, there are a few fundamental differences between the Swahili and Arabic poetry. With much of African influence, the two poems can hardly be compared for it is sui generis. Traditional poetry can be classified into different groups according to its form and content. It can be epic, lyrical or didactic, as well as religious or secular. Examples of narrative poetry, known as utenzi, include the Utendi wa Tambuka by Bwana Mwengo and the Utenzi wa Shufaka. Use of Swahili prose was until recently practically restricted to utilitarian purposes. However, the traditional art of oral expression in poetry has produced a number of valuable works. It is characterized by its homiletic aspects, heroic songs, folklore ballads and humorous dialogues which accurately depict Swahili life, cultural beliefs and traditions. Because of the immediate historical aspect of the Swahili literature, especially in the 19th century, it is still a hard job to interpret many of the poems due to the lack of knowledge of the context in which the poem was written.