from שָׁפָה (compare שִׁפְחָה); a family, i.e. circle of relatives; figuratively, a class (of persons), a species (of animals) or sort (of things); by extension a tribe or people; family, kind(-red).
active participle of an otherwise unused root probably meaning to write; properly, a scribe, i.e. (by analogy or implication) an official superintendent or magistrate; officer, overseer, ruler.