There shall be a State librarian, to be chosen by the legislature, on joint vote of the two houses, to serve for four years, whose duties and compensation shall be prescribed by law. Any woman, a resident of the State four years, and who has attained the age of twenty years, shall be eligible to said office.