category parsing