The term, jail, as used in this chapter includes any building or place provided or used by any county, municipality, or civil township for the detention of adult persons convicted or accused of the violation of any law of this state, any ordinance or bylaw of any municipality or civil township, or any rule or regulation of any board, commission, or public officer having the effect of law; or for the detention of adult persons held as witnesses or committed for contempts, except juvenile detention facilities located outside jails and lockups and approved collocated detention facilities operated by counties. The governing body or commission responsible for the operation of a jail shall classify its jails based upon the types of persons detained therein and the maximum length of detention of persons in such jails.
SDCL 24-11-1