As used in section 8-3g and sections 19a-507a to 19a-507d, inclusive: (1) “Mentally ill adult” means any adult who has a mental or emotional condition which has substantial adverse effects on his ability to function and who requires care and treatment but shall not mean any adult who is dangerous to himself or herself or others, as defined in section 17a-495, or who is an alcohol-dependent person or a drug-dependent person, as defined in section 17a-680, or who has been placed in any community-based residential home by order of the Superior Court or has been released to any community-based residential home by the Department of Correction or any person found not competent to stand trial for any crime pursuant to section 54-56d or committed pursuant to sections 17a-580 to 17a-602, inclusive; (2) “regional mental health board” means a regional mental health board, as defined in section 17a-482; (3) “community residence” means a facility which houses the staff of such facility and eight or fewer mentally ill adults which is licensed by the Commissioner of Public Health and which provides supervised, structured group living activities and psychosocial rehabilitation and other support services to mentally ill adults discharged from a state-operated or licensed facility or referred by a licensed physician specializing in psychiatry or a licensed psychologist.