Naisenshi (Palace Dyeing Office) (内染司)
Naisenshi was an institution belonging to Kunaisho (Ministry of the Sovereign's Household) in the Ritsuryo system (a system of centralized government based on the ritsuryo code).
The Japanese way of reading is 'Uchisomemono no tsukasa.'
Naisenshi was in charge of dyeing for string, fabric and woven fabric to be dedicated to the Emperor and the Empress. Kannuhi (government-owned slave) were staffed for dyeing. With the elimination and consolidation of government officials on February 23, 808, it was incorporated into Nuidonoryo (Bureau of the Wardrobe and Court Ladies) belonging to Nakatsukasasho (Ministry of Central Affairs) (the said part of "Nihon Koki" (Later Chronicle of Japan) was partly lost, but it was written in "Kanshoku hisho" (a text describing rules of ceremony and etiquette to be observed in the imperial court and by samurai that was written during the early Heian period in around 1200) and so on. In the Engishiki (an ancient book for codes and procedures on national rites and prayers), 'Gofukusome tsukuridokoro' (the center for dyeing clothes), which succeeded to the function of Naisenshi, was put in Nuidonoryo and six Somete (dyer), who seems to have been later forms of Someshi (dyer), were staffed.
Kami (director) (corresponding to Jurokui [Junior Sixth Rank]) one member. Jo (secretary) (corresponding to Shohachiinoge [Senior Eighth Rank, Lower Grade]) one member. Reishi (corresponding to Shohatsuinoge [Lesser Initial Rank, Lower Grade]) one member. Someshi two members. Shibe (low rank bureaucrats) six members. Kanjin shicho (a manservant doing odd jobs) one member.