cleaner data structure for librar keywords