knowledge

knowledge.knowledge_scholar_flags_0

<bitfield-type type-name="knowledge_scholar_flags_0"
    base-type="uint32_t">
  <flag-bit name="philosophy_logic_formal_reasoning"/>
  <flag-bit name="philosophy_logic_deductive_reasoning"/>
  <flag-bit name="philosophy_logic_syllogistic_logic"/>
  <flag-bit name="philosophy_logic_hypothetical_syllogisms"/>
  <flag-bit name="philosophy_logic_propositional_logic"/>
  <flag-bit name="philosophy_logic_dialectic_reasoning"/>
  <flag-bit name="philosophy_logic_analogical_inference"/>
  <flag-bit name="philosophy_ethics_applied_medical"/>
  <flag-bit name="philosophy_ethics_individual_value"/>
  <flag-bit name="philosophy_ethics_state_consequentialism"/>
  <flag-bit name="philosophy_epistemology_truth"/>
  <flag-bit name="philosophy_epistemology_perception"/>
  <flag-bit name="philosophy_epistemology_justification"/>
  <flag-bit name="philosophy_epistemology_belief"/>
  <flag-bit name="philosophy_metaphysics_existence"/>
  <flag-bit name="philosophy_metaphysics_time"/>
  <flag-bit name="philosophy_metaphysics_mind_body"/>
  <flag-bit name="philosophy_metaphysics_objects_and_properties"/>
  <flag-bit name="philosophy_metaphysics_wholes_and_parts"/>
  <flag-bit name="philosophy_metaphysics_events"/>
  <flag-bit name="philosophy_metaphysics_processes"/>
  <flag-bit name="philosophy_metaphysics_causation"/>
  <flag-bit name="philosophy_ethics_applied_military"/>
  <flag-bit name="philosophy_ethics_applied_interpersonal_conduct"/>
  <flag-bit name="philosophy_specialized_law"/>
  <flag-bit name="philosophy_specialized_education"/>
  <flag-bit name="philosophy_specialized_language_grammar"/>
  <flag-bit name="philosophy_specialized_language_etymology"/>
  <flag-bit name="philosophy_specialized_politics_diplomacy"/>
  <flag-bit name="philosophy_specialized_politics_government_forms"/>
  <flag-bit name="philosophy_specialized_politics_economic_policy"/>
  <flag-bit name="philosophy_specialized_politics_social_welfare"/>
</bitfield-type>

knowledge.knowledge_scholar_flags_1

<bitfield-type type-name="knowledge_scholar_flags_1"
    base-type="uint32_t">
  <flag-bit name="philosophy_logic_inductive_reasoning"/>
  <flag-bit name="philosophy_logic_direct_inference"/>
  <flag-bit name="philosophy_aesthetics_nature_of_beauty"/>
  <flag-bit name="philosophy_aesthetics_value_of_art"/>
  <flag-bit name="philosophy_specialized_language_dictionary"/>
</bitfield-type>

knowledge.knowledge_scholar_flags_2

<bitfield-type type-name="knowledge_scholar_flags_2"
    base-type="uint32_t">
  <flag-bit name="mathematics_method_proof_by_contradiction"/>
  <flag-bit name="mathematics_notation_zero"/>
  <flag-bit name="mathematics_notation_negative_numbers"/>
  <flag-bit name="mathematics_notation_large_numbers"/>
  <flag-bit name="mathematics_notation_positional"/>
  <flag-bit name="mathematics_geometry_basic_objects"/>
  <flag-bit name="mathematics_method_exhaustion"/>
  <flag-bit
      name="mathematics_geometry_similar_and_congruent_triangles"/>
  <flag-bit name="mathematics_geometry_geometric_mean_theorem"/>
  <flag-bit name="mathematics_geometry_isosceles_base_angles_equal"/>
  <flag-bit
      name="mathematics_geometry_inscribed_triangle_on_diameter_is_rig
      ht"/>
  <flag-bit name="mathematics_geometry_pythagorean_theorem"/>
  <flag-bit name="mathematics_geometry_pythagorean_triples_small"/>
  <flag-bit name="mathematics_geometry_pythagorean_triples_3_digit"/>
  <flag-bit name="mathematics_geometry_pythagorean_triples_4_digit"/>
  <flag-bit
      name="mathematics_geometry_existence_of_incommensurable_ratios"/
      >
  <flag-bit name="mathematics_method_axiomatic_reasoning"/>
  <flag-bit name="mathematics_numbers_unique_prime_factorization"/>
  <flag-bit name="mathematics_numbers_algorithm_for_computing_gcd"/>
  <flag-bit name="mathematics_geometry_volume_of_pyramid"/>
  <flag-bit name="mathematics_geometry_volume_of_cone"/>
  <flag-bit name="mathematics_geometry_volume_of_sphere"/>
  <flag-bit name="mathematics_geometry_pi_to_4_digits"/>
  <flag-bit name="mathematics_numbers_division_algorithm"/>
  <flag-bit name="mathematics_geometry_table_of_chord_values"/>
  <flag-bit
      name="mathematics_geometry_area_of_triangle_from_side_lengths"/>
  <flag-bit name="mathematics_geometry_area_of_circle"/>
  <flag-bit name="mathematics_geometry_pi_to_6_digits"/>
  <flag-bit name="mathematics_geometry_definitions_and_basic_propertie
      s_of_conic_sections"/>
  <flag-bit name="mathematics_numbers_chinese_remainder_algorithm"/>
  <flag-bit
      name="mathematics_geometry_area_enclosed_by_line_and_parabola"/>
  <flag-bit name="mathematics_numbers_sieve_algorithm_for_primes"/>
</bitfield-type>

knowledge.knowledge_scholar_flags_3

<bitfield-type type-name="knowledge_scholar_flags_3"
    base-type="uint32_t">
  <flag-bit name="mathematics_numbers_root_2_to_5_digits"/>
  <flag-bit name="mathematics_numbers_infinite_primes"/>
  <flag-bit name="mathematics_numbers_root_2_irrational"/>
  <flag-bit name="mathematics_geometry_surface_area_of_sphere"/>
  <flag-bit name="mathematics_algebra_finite_summation_formulas"/>
  <flag-bit name="mathematics_algebra_solving_linear_systems"/>
  <flag-bit name="mathematics_algebra_balancing_and_completion"/>
  <flag-bit
      name="mathematics_algebra_quadratic_by_completing_square"/>
  <flag-bit name="mathematics_algebra_quadratic_formula"/>
  <flag-bit name="mathematics_notation_syncopated_algebra"/>
  <flag-bit name="mathematics_geometry_law_of_sines"/>
  <flag-bit
      name="mathematics_geometry_angle_sum_difference_trig_identities"
      />
  <flag-bit name="mathematics_algebra_pascals_triangle"/>
  <flag-bit
      name="mathematics_algebra_solving_higher_order_polynomials"/>
  <flag-bit name="mathematics_notation_early_symbols_for_operations"/>
  <flag-bit name="mathematics_algebra_divergence_of_harmonic_series"/>
  <flag-bit name="mathematics_geometry_properties_of_chords"/>
</bitfield-type>

knowledge.knowledge_scholar_flags_4

<bitfield-type type-name="knowledge_scholar_flags_4"
    base-type="uint32_t">
  <flag-bit name="history_sourcing_basic_reliability"/>
  <flag-bit name="history_sourcing_role_of_systemic_bias"/>
  <flag-bit
      name="history_sourcing_role_of_state_bias_and_propaganda"/>
  <flag-bit name="history_sourcing_personal_interviews"/>
  <flag-bit name="history_theory_historical_causation"/>
  <flag-bit name="history_theory_historical_cycles"/>
  <flag-bit name="history_theory_social_cohesion"/>
  <flag-bit name="history_theory_social_conflict"/>
  <flag-bit name="history_form_biography"/>
  <flag-bit name="history_form_comparative_biography"/>
  <flag-bit name="history_form_biographical_dictionaries"/>
  <flag-bit name="history_form_autobiographical_adventure"/>
  <flag-bit name="history_form_genealogy"/>
  <flag-bit name="history_form_encyclopedia"/>
  <flag-bit name="history_form_cultural_history"/>
  <flag-bit name="history_form_cultural_comparison"/>
  <flag-bit name="history_sourcing_role_of_cultural_differences"/>
  <flag-bit name="history_form_alternate_history"/>
  <flag-bit name="history_sourcing_basic_archaeology"/>
  <flag-bit name="history_form_treatise_on_tech_evolution"/>
</bitfield-type>

knowledge.knowledge_scholar_flags_5

<bitfield-type type-name="knowledge_scholar_flags_5"
    base-type="uint32_t">
  <flag-bit name="astronomy_phases_of_the_moon"/>
  <flag-bit name="astronomy_summer_winter_moon"/>
  <flag-bit name="astronomy_path_of_the_moon"/>
  <flag-bit name="astronomy_tides_and_the_moon"/>
  <flag-bit name="astronomy_height_of_tides_vs_moon_and_sun"/>
  <flag-bit name="astronomy_summer_winter_sun"/>
  <flag-bit name="astronomy_relationship_between_lunar_solar_year"/>
  <flag-bit name="astronomy_daylight_variation_with_solar_year"/>
  <flag-bit name="astronomy_geocentric_model"/>
  <flag-bit name="astronomy_heliocentric_model"/>
  <flag-bit name="astronomy_dates_of_lunar_and_solar_eclipses"/>
  <flag-bit name="astronomy_star_charts"/>
  <flag-bit name="astronomy_star_catalogues_100"/>
  <flag-bit name="astronomy_star_catalogues_1000"/>
  <flag-bit name="astronomy_star_color_classification"/>
  <flag-bit name="astronomy_star_magnitude_classification"/>
  <flag-bit name="astronomy_shape_of_the_world"/>
  <flag-bit name="astronomy_precession_of_equinoxes"/>
  <flag-bit name="astronomy_method_empirical_observation"/>
  <flag-bit name="astronomy_method_path_models"/>
</bitfield-type>

knowledge.knowledge_scholar_flags_6

<bitfield-type type-name="knowledge_scholar_flags_6"
    base-type="uint32_t">
  <flag-bit name="naturalist_method_dissection"/>
  <flag-bit name="naturalist_observation_anatomy"/>
  <flag-bit name="naturalist_theory_comparative_anatomy"/>
  <flag-bit
      name="naturalist_theory_classification_by_physical_features"/>
  <flag-bit name="naturalist_observation_migration_patterns"/>
  <flag-bit name="naturalist_observation_reproductive_behavior"/>
  <flag-bit name="naturalist_observation_foraging_behavior_and_diet"/>
  <flag-bit name="naturalist_theory_food_chain"/>
  <flag-bit name="naturalist_observation_social_behavior"/>
  <flag-bit name="naturalist_observation_diseases"/>
  <flag-bit name="naturalist_theory_climactic_adaptation"/>
  <flag-bit name="naturalist_observation_embriological_development"/>
  <flag-bit name="naturalist_theory_struggle_for_existence"/>
</bitfield-type>

knowledge.knowledge_scholar_flags_7

<bitfield-type type-name="knowledge_scholar_flags_7"
    base-type="uint32_t">
  <flag-bit name="chemistry_classification_combustibles"/>
  <flag-bit name="chemistry_classification_ores"/>
  <flag-bit name="chemistry_metallurgy_alloys"/>
  <flag-bit name="chemistry_classification_scratch_test"/>
  <flag-bit name="chemistry_classification_elemental_theory"/>
  <flag-bit name="chemistry_chemicals_adhesives"/>
  <flag-bit name="chemistry_laboratory_blast_furnace"/>
  <flag-bit name="chemistry_laboratory_alembic"/>
  <flag-bit
      name="chemistry_laboratory_theory_of_liquid_liquid_extraction"/>
  <flag-bit name="chemistry_laboratory_theory_of_distillation"/>
  <flag-bit name="chemistry_laboratory_theory_of_evaporation"/>
  <flag-bit name="chemistry_classification_alkali_and_acids"/>
  <flag-bit name="chemistry_laboratory_systematic_experiments"/>
  <flag-bit name="chemistry_laboratory_glass_flask"/>
  <flag-bit name="chemistry_laboratory_glass_beaker"/>
  <flag-bit name="chemistry_laboratory_glass_vial"/>
  <flag-bit name="chemistry_laboratory_glass_funnel"/>
  <flag-bit name="chemistry_laboratory_crucible"/>
  <flag-bit name="chemistry_chemicals_nitric_acid"/>
  <flag-bit name="chemistry_chemicals_sulfuric_acid"/>
  <flag-bit name="chemistry_chemicals_aqua_regia"/>
  <flag-bit name="chemistry_laboratory_glass_ampoule"/>
  <flag-bit name="chemistry_laboratory_glass_retort"/>
  <flag-bit name="chemistry_laboratory_lab_ovens"/>
</bitfield-type>

knowledge.knowledge_scholar_flags_8

<bitfield-type type-name="knowledge_scholar_flags_8"
    base-type="uint32_t">
  <flag-bit name="geography_surveying_basic"/>
  <flag-bit name="geography_surveying_staff"/>
  <flag-bit name="geography_cartography_basic"/>
  <flag-bit name="geography_surveying_triangulation"/>
  <flag-bit name="geography_surveying_cartographical"/>
  <flag-bit name="geography_surveying_land"/>
  <flag-bit name="geography_surveying_military"/>
  <flag-bit name="geography_surveying_engineering"/>
  <flag-bit name="geography_cartography_geological"/>
  <flag-bit name="geography_cartography_grid_system"/>
  <flag-bit name="geography_cartography_distance_scale"/>
  <flag-bit name="geography_cartography_height_measurements"/>
  <flag-bit name="geography_method_economic_data_collection"/>
  <flag-bit name="geography_cartography_economic"/>
  <flag-bit name="geography_form_atlas"/>
  <flag-bit name="geography_theory_delta_formation"/>
  <flag-bit name="geography_theory_wind_patterns"/>
  <flag-bit
      name="geography_theory_origin_of_rainfall_from_evap_condense"/>
  <flag-bit name="geography_theory_water_cycle"/>
  <flag-bit name="geography_theory_latitude_climate_zones"/>
  <flag-bit name="geography_cartography_accurate_maps"/>
  <flag-bit name="geography_cartography_map_projections"/>
</bitfield-type>

knowledge.knowledge_scholar_flags_9

<bitfield-type type-name="knowledge_scholar_flags_9"
    base-type="uint32_t">
  <flag-bit name="medicine_theory_disease_and_fouled_water"/>
  <flag-bit name="medicine_method_physical_examination"/>
  <flag-bit name="medicine_method_autopsy"/>
  <flag-bit name="medicine_theory_prognosis"/>
  <flag-bit name="medicine_tool_herbal_remedies"/>
  <flag-bit name="medicine_tool_animal_remedies"/>
  <flag-bit name="medicine_tool_mineral_remedies"/>
  <flag-bit name="medicine_tool_bandages"/>
  <flag-bit name="medicine_theory_disease_classification"/>
  <flag-bit name="medicine_theory_toxicology"/>
  <flag-bit name="medicine_theory_acute_and_chronic_conditions"/>
  <flag-bit name="medicine_theory_endemic_disease"/>
  <flag-bit name="medicine_theory_epidemic_disease"/>
  <flag-bit name="medicine_theory_exacerbation"/>
  <flag-bit name="medicine_theory_paroxysm"/>
  <flag-bit name="medicine_theory_relapse"/>
  <flag-bit name="medicine_theory_convalescence"/>
  <flag-bit name="medicine_method_treatment_of_traumatic_injuries"/>
  <flag-bit name="medicine_method_fracture_treatment"/>
  <flag-bit name="medicine_theory_fracture_classification"/>
  <flag-bit name="medicine_tool_traction_bench"/>
  <flag-bit name="medicine_method_fracture_immobilization"/>
  <flag-bit name="medicine_tool_orthopedic_cast"/>
  <flag-bit name="medicine_method_surgery_excision"/>
  <flag-bit name="medicine_method_surgery_incision"/>
  <flag-bit name="medicine_method_hernia_surgery"/>
  <flag-bit name="medicine_method_tracheotomy_surgery"/>
  <flag-bit name="medicine_method_lithotomy_surgery"/>
  <flag-bit name="medicine_method_surgery_scraping"/>
  <flag-bit name="medicine_method_surgery_draining"/>
  <flag-bit name="medicine_method_surgery_probing"/>
  <flag-bit name="medicine_method_surgery_suturing"/>
</bitfield-type>

knowledge.knowledge_scholar_flags_10

<bitfield-type type-name="knowledge_scholar_flags_10"
    base-type="uint32_t">
  <flag-bit name="medicine_method_surgery_ligature"/>
  <flag-bit name="medicine_theory_surgical_models"/>
  <flag-bit name="medicine_tool_mud_bags_as_surgical_models"/>
  <flag-bit name="medicine_tool_plants_as_surgical_models"/>
  <flag-bit name="medicine_tool_animals_as_surgical_models"/>
  <flag-bit name="medicine_theory_specialized_surgical_instruments"/>
  <flag-bit name="medicine_tool_forceps"/>
  <flag-bit name="medicine_tool_scalpel"/>
  <flag-bit name="medicine_tool_surgical_scissors"/>
  <flag-bit name="medicine_tool_surgical_needles"/>
  <flag-bit name="medicine_method_cataract_surgery"/>
  <flag-bit name="medicine_method_cauterization"/>
  <flag-bit name="medicine_method_anesthesia"/>
  <flag-bit name="medicine_theory_pulmonary_medicine"/>
  <flag-bit name="medicine_theory_anatomical_studies"/>
  <flag-bit name="medicine_theory_classification_of_bodily_fluids"/>
  <flag-bit name="medicine_theory_eye_anatomy"/>
  <flag-bit name="medicine_theory_motor_vs_sensory_nerves"/>
  <flag-bit name="medicine_theory_nervous_system_function"/>
  <flag-bit name="medicine_theory_reaction_time"/>
  <flag-bit name="medicine_theory_blood_vessels"/>
  <flag-bit name="medicine_theory_pulmonary_circulation"/>
  <flag-bit name="medicine_theory_comparative_anatomy"/>
  <flag-bit name="medicine_theory_the_voice"/>
  <flag-bit name="medicine_theory_classification_of_muscles"/>
  <flag-bit
      name="medicine_theory_classification_of_mental_illnesses"/>
  <flag-bit name="medicine_theory_treatment_of_mental_illnesses"/>
  <flag-bit name="medicine_tool_dedicated_hospitals"/>
  <flag-bit name="medicine_method_professional_hospital_staff"/>
  <flag-bit name="medicine_method_specialized_wards"/>
  <flag-bit name="medicine_method_hospital_lab"/>
  <flag-bit name="medicine_method_medical_school"/>
</bitfield-type>

knowledge.knowledge_scholar_flags_11

<bitfield-type type-name="knowledge_scholar_flags_11"
    base-type="uint32_t">
  <flag-bit name="medicine_method_asylum_for_mentally_ill"/>
</bitfield-type>

knowledge.knowledge_scholar_flags_12

<bitfield-type type-name="knowledge_scholar_flags_12"
    base-type="uint32_t">
  <flag-bit name="engineering_horology_shadow_clock"/>
  <flag-bit name="engineering_horology_water_clock"/>
  <flag-bit name="engineering_horology_conical_water_clock"/>
  <flag-bit name="engineering_horology_water_clock_reservoir"/>
  <flag-bit name="engineering_horology_astrarium"/>
  <flag-bit name="engineering_horology_hourglass"/>
  <flag-bit name="engineering_horology_mechanical_clock"/>
  <flag-bit name="engineering_machine_theory_of_pulley"/>
  <flag-bit name="engineering_machine_pulley"/>
  <flag-bit name="engineering_machine_theory_of_screw"/>
  <flag-bit name="engineering_machine_screw"/>
  <flag-bit name="engineering_machine_theory_of_wheel_and_axle"/>
  <flag-bit name="engineering_machine_windlass"/>
  <flag-bit name="engineering_machine_theory_of_wedge"/>
  <flag-bit name="engineering_machine_theory_of_lever"/>
  <flag-bit name="engineering_machine_lever"/>
  <flag-bit name="engineering_machine_straight_beam_balance"/>
  <flag-bit name="engineering_machine_theory_of_gears"/>
  <flag-bit name="engineering_machine_warded_lock"/>
  <flag-bit name="engineering_machine_tumbler_lock"/>
  <flag-bit name="engineering_machine_padlock"/>
  <flag-bit name="engineering_machine_camshaft"/>
  <flag-bit name="engineering_machine_crankshaft"/>
  <flag-bit name="engineering_machine_water_powered_sawmill"/>
  <flag-bit name="engineering_machine_chariot_odometer"/>
  <flag-bit name="engineering_machine_chain_drive"/>
  <flag-bit name="engineering_machine_mechanical_compass"/>
  <flag-bit name="engineering_machine_differential_gear"/>
  <flag-bit name="engineering_machine_combination_lock"/>
  <flag-bit name="engineering_machine_verge_escapement"/>
  <flag-bit name="engineering_machine_balance_wheel"/>
  <flag-bit name="engineering_fluid_theory_of_siphon"/>
</bitfield-type>

knowledge.knowledge_scholar_flags_13

<bitfield-type type-name="knowledge_scholar_flags_13"
    base-type="uint32_t">
  <flag-bit name="engineering_fluid_valves"/>
  <flag-bit name="engineering_fluid_force_pump"/>
  <flag-bit name="engineering_optics_crystal_lens"/>
  <flag-bit name="engineering_optics_water_filled_spheres"/>
  <flag-bit name="engineering_optics_glass_lens"/>
  <flag-bit name="engineering_optics_camera_obscura"/>
  <flag-bit name="engineering_optics_parabolic_mirror"/>
  <flag-bit name="engineering_optics_theory_of_color"/>
  <flag-bit name="engineering_optics_theory_of_rainbows"/>
  <flag-bit name="engineering_optics_law_of_refraction"/>
  <flag-bit name="engineering_design_models_and_templates"/>
  <flag-bit name="engineering_construction_wood_lamination"/>
  <flag-bit name="engineering_astronomy_dioptra"/>
  <flag-bit name="engineering_astronomy_astrolabe"/>
  <flag-bit name="engineering_astronomy_armillary_sphere"/>
  <flag-bit name="engineering_astronomy_spherical_astrolabe"/>
  <flag-bit name="engineering_astronomy_mural_instrument"/>
  <flag-bit name="engineering_astronomy_orrery"/>
  <flag-bit name="engineering_machine_water_powered_trip_hammer"/>
  <flag-bit name="engineering_machine_double_acting_piston_bellows"/>
  <flag-bit name="engineering_fluid_archimedes_principle"/>
  <flag-bit name="engineering_optics_atmospheric_refraction"/>
  <flag-bit name="engineering_optics_cause_of_twilight"/>
  <flag-bit name="engineering_optics_height_of_atmosphere"/>
  <flag-bit name="engineering_machine_piston"/>
  <flag-bit name="engineering_machine_crank"/>
  <flag-bit name="engineering_machine_bellows"/>
  <flag-bit name="engineering_machine_water_powered_piston_bellows"/>
  <flag-bit name="engineering_machine_water_wheel"/>
  <flag-bit name="engineering_machine_trip_hammer"/>
</bitfield-type>

knowledge.knowledge_scholar_category_flag

<struct-type type-name="knowledge_scholar_category_flag">
  <extra-include type-name="dfhack_knowledge_scholar_flag"/>
  <int32_t name="category">
    determines which bitflags to use
  </int32_t>
  <uint32_t name="flags">
    one of the 14 bitflag structs
  </uint32_t>
  <custom-methods>
    <cmethod name="value"/>
  </custom-methods>
  the compound below does not work because bitfields have constructors
  <compound name='flags' is-union='true'> <compound name='flags_0'
      type-name='knowledge_scholar_flags_0'/> <compound name='flags_1'
       type-name='knowledge_scholar_flags_1'/> <compound
      name='flags_2' type-name='knowledge_scholar_flags_2'/> <compound
       name='flags_3' type-name='knowledge_scholar_flags_3'/>
      <compound name='flags_4' type-name='knowledge_scholar_flags_4'/>
       <compound name='flags_5'
      type-name='knowledge_scholar_flags_5'/> <compound name='flags_6'
       type-name='knowledge_scholar_flags_6'/> <compound
      name='flags_7' type-name='knowledge_scholar_flags_7'/> <compound
       name='flags_8' type-name='knowledge_scholar_flags_8'/>
      <compound name='flags_9' type-name='knowledge_scholar_flags_9'/>
       <compound name='flags_10'
      type-name='knowledge_scholar_flags_10'/> <compound
      name='flags_11' type-name='knowledge_scholar_flags_11'/>
      <compound name='flags_12'
      type-name='knowledge_scholar_flags_12'/> <compound
      name='flags_13' type-name='knowledge_scholar_flags_13'/>
      </compound>
</struct-type>

knowledge.dfhack_knowledge_scholar_flag

<enum-type type-name="dfhack_knowledge_scholar_flag"
    base-type="int32_t">
  <enum-item name="philosophy_logic_formal_reasoning" value="0"/>
  <enum-item name="philosophy_logic_deductive_reasoning"/>
  <enum-item name="philosophy_logic_syllogistic_logic"/>
  <enum-item name="philosophy_logic_hypothetical_syllogisms"/>
  <enum-item name="philosophy_logic_propositional_logic"/>
  <enum-item name="philosophy_logic_dialectic_reasoning"/>
  <enum-item name="philosophy_logic_analogical_inference"/>
  <enum-item name="philosophy_ethics_applied_medical"/>
  <enum-item name="philosophy_ethics_individual_value"/>
  <enum-item name="philosophy_ethics_state_consequentialism"/>
  <enum-item name="philosophy_epistemology_truth"/>
  <enum-item name="philosophy_epistemology_perception"/>
  <enum-item name="philosophy_epistemology_justification"/>
  <enum-item name="philosophy_epistemology_belief"/>
  <enum-item name="philosophy_metaphysics_existence"/>
  <enum-item name="philosophy_metaphysics_time"/>
  <enum-item name="philosophy_metaphysics_mind_body"/>
  <enum-item name="philosophy_metaphysics_objects_and_properties"/>
  <enum-item name="philosophy_metaphysics_wholes_and_parts"/>
  <enum-item name="philosophy_metaphysics_events"/>
  <enum-item name="philosophy_metaphysics_processes"/>
  <enum-item name="philosophy_metaphysics_causation"/>
  <enum-item name="philosophy_ethics_applied_military"/>
  <enum-item name="philosophy_ethics_applied_interpersonal_conduct"/>
  <enum-item name="philosophy_specialized_law"/>
  <enum-item name="philosophy_specialized_education"/>
  <enum-item name="philosophy_specialized_language_grammar"/>
  <enum-item name="philosophy_specialized_language_etymology"/>
  <enum-item name="philosophy_specialized_politics_diplomacy"/>
  <enum-item name="philosophy_specialized_politics_government_forms"/>
  <enum-item name="philosophy_specialized_politics_economic_policy"/>
  <enum-item name="philosophy_specialized_politics_social_welfare"/>
  <enum-item name="philosophy_logic_inductive_reasoning" value="32"/>
  <enum-item name="philosophy_logic_direct_inference"/>
  <enum-item name="philosophy_aesthetics_nature_of_beauty"/>
  <enum-item name="philosophy_aesthetics_value_of_art"/>
  <enum-item name="philosophy_specialized_language_dictionary"/>
  <enum-item name="mathematics_method_proof_by_contradiction"
      value="64"/>
  <enum-item name="mathematics_notation_zero"/>
  <enum-item name="mathematics_notation_negative_numbers"/>
  <enum-item name="mathematics_notation_large_numbers"/>
  <enum-item name="mathematics_notation_positional"/>
  <enum-item name="mathematics_geometry_basic_objects"/>
  <enum-item name="mathematics_method_exhaustion"/>
  <enum-item
      name="mathematics_geometry_similar_and_congruent_triangles"/>
  <enum-item name="mathematics_geometry_geometric_mean_theorem"/>
  <enum-item name="mathematics_geometry_isosceles_base_angles_equal"/>
  <enum-item
      name="mathematics_geometry_inscribed_triangle_on_diameter_is_rig
      ht"/>
  <enum-item name="mathematics_geometry_pythagorean_theorem"/>
  <enum-item name="mathematics_geometry_pythagorean_triples_small"/>
  <enum-item name="mathematics_geometry_pythagorean_triples_3_digit"/>
  <enum-item name="mathematics_geometry_pythagorean_triples_4_digit"/>
  <enum-item
      name="mathematics_geometry_existence_of_incommensurable_ratios"/
      >
  <enum-item name="mathematics_method_axiomatic_reasoning"/>
  <enum-item name="mathematics_numbers_unique_prime_factorization"/>
  <enum-item name="mathematics_numbers_algorithm_for_computing_gcd"/>
  <enum-item name="mathematics_geometry_volume_of_pyramid"/>
  <enum-item name="mathematics_geometry_volume_of_cone"/>
  <enum-item name="mathematics_geometry_volume_of_sphere"/>
  <enum-item name="mathematics_geometry_pi_to_4_digits"/>
  <enum-item name="mathematics_numbers_division_algorithm"/>
  <enum-item name="mathematics_geometry_table_of_chord_values"/>
  <enum-item
      name="mathematics_geometry_area_of_triangle_from_side_lengths"/>
  <enum-item name="mathematics_geometry_area_of_circle"/>
  <enum-item name="mathematics_geometry_pi_to_6_digits"/>
  <enum-item name="mathematics_geometry_definitions_and_basic_properti
      es_of_conic_sections"/>
  <enum-item name="mathematics_numbers_chinese_remainder_algorithm"/>
  <enum-item
      name="mathematics_geometry_area_enclosed_by_line_and_parabola"/>
  <enum-item name="mathematics_numbers_sieve_algorithm_for_primes"/>
  <enum-item name="mathematics_numbers_root_2_to_5_digits"
      value="96"/>
  <enum-item name="mathematics_numbers_infinite_primes"/>
  <enum-item name="mathematics_numbers_root_2_irrational"/>
  <enum-item name="mathematics_geometry_surface_area_of_sphere"/>
  <enum-item name="mathematics_algebra_finite_summation_formulas"/>
  <enum-item name="mathematics_algebra_solving_linear_systems"/>
  <enum-item name="mathematics_algebra_balancing_and_completion"/>
  <enum-item
      name="mathematics_algebra_quadratic_by_completing_square"/>
  <enum-item name="mathematics_algebra_quadratic_formula"/>
  <enum-item name="mathematics_notation_syncopated_algebra"/>
  <enum-item name="mathematics_geometry_law_of_sines"/>
  <enum-item
      name="mathematics_geometry_angle_sum_difference_trig_identities"
      />
  <enum-item name="mathematics_algebra_pascals_triangle"/>
  <enum-item
      name="mathematics_algebra_solving_higher_order_polynomials"/>
  <enum-item
      name="mathematics_notation_early_symbols_for_operations"/>
  <enum-item
      name="mathematics_algebra_divergence_of_harmonic_series"/>
  <enum-item name="mathematics_geometry_properties_of_chords"/>
  <enum-item name="history_sourcing_basic_reliability" value="128"/>
  <enum-item name="history_sourcing_role_of_systemic_bias"/>
  <enum-item
      name="history_sourcing_role_of_state_bias_and_propaganda"/>
  <enum-item name="history_sourcing_personal_interviews"/>
  <enum-item name="history_theory_historical_causation"/>
  <enum-item name="history_theory_historical_cycles"/>
  <enum-item name="history_theory_social_cohesion"/>
  <enum-item name="history_theory_social_conflict"/>
  <enum-item name="history_form_biography"/>
  <enum-item name="history_form_comparative_biography"/>
  <enum-item name="history_form_biographical_dictionaries"/>
  <enum-item name="history_form_autobiographical_adventure"/>
  <enum-item name="history_form_genealogy"/>
  <enum-item name="history_form_encyclopedia"/>
  <enum-item name="history_form_cultural_history"/>
  <enum-item name="history_form_cultural_comparison"/>
  <enum-item name="history_sourcing_role_of_cultural_differences"/>
  <enum-item name="history_form_alternate_history"/>
  <enum-item name="history_sourcing_basic_archaeology"/>
  <enum-item name="history_form_treatise_on_tech_evolution"/>
  <enum-item name="astronomy_phases_of_the_moon" value="160"/>
  <enum-item name="astronomy_summer_winter_moon"/>
  <enum-item name="astronomy_path_of_the_moon"/>
  <enum-item name="astronomy_tides_and_the_moon"/>
  <enum-item name="astronomy_height_of_tides_vs_moon_and_sun"/>
  <enum-item name="astronomy_summer_winter_sun"/>
  <enum-item name="astronomy_relationship_between_lunar_solar_year"/>
  <enum-item name="astronomy_daylight_variation_with_solar_year"/>
  <enum-item name="astronomy_geocentric_model"/>
  <enum-item name="astronomy_heliocentric_model"/>
  <enum-item name="astronomy_dates_of_lunar_and_solar_eclipses"/>
  <enum-item name="astronomy_star_charts"/>
  <enum-item name="astronomy_star_catalogues_100"/>
  <enum-item name="astronomy_star_catalogues_1000"/>
  <enum-item name="astronomy_star_color_classification"/>
  <enum-item name="astronomy_star_magnitude_classification"/>
  <enum-item name="astronomy_shape_of_the_world"/>
  <enum-item name="astronomy_precession_of_equinoxes"/>
  <enum-item name="astronomy_method_empirical_observation"/>
  <enum-item name="astronomy_method_path_models"/>
  <enum-item name="naturalist_method_dissection" value="192"/>
  <enum-item name="naturalist_observation_anatomy"/>
  <enum-item name="naturalist_theory_comparative_anatomy"/>
  <enum-item
      name="naturalist_theory_classification_by_physical_features"/>
  <enum-item name="naturalist_observation_migration_patterns"/>
  <enum-item name="naturalist_observation_reproductive_behavior"/>
  <enum-item
      name="naturalist_observation_foraging_behavior_and_diet"/>
  <enum-item name="naturalist_theory_food_chain"/>
  <enum-item name="naturalist_observation_social_behavior"/>
  <enum-item name="naturalist_observation_diseases"/>
  <enum-item name="naturalist_theory_climactic_adaptation"/>
  <enum-item name="naturalist_observation_embriological_development"/>
  <enum-item name="naturalist_theory_struggle_for_existence"/>
  <enum-item name="chemistry_classification_combustibles"
      value="224"/>
  <enum-item name="chemistry_classification_ores"/>
  <enum-item name="chemistry_metallurgy_alloys"/>
  <enum-item name="chemistry_classification_scratch_test"/>
  <enum-item name="chemistry_classification_elemental_theory"/>
  <enum-item name="chemistry_chemicals_adhesives"/>
  <enum-item name="chemistry_laboratory_blast_furnace"/>
  <enum-item name="chemistry_laboratory_alembic"/>
  <enum-item
      name="chemistry_laboratory_theory_of_liquid_liquid_extraction"/>
  <enum-item name="chemistry_laboratory_theory_of_distillation"/>
  <enum-item name="chemistry_laboratory_theory_of_evaporation"/>
  <enum-item name="chemistry_classification_alkali_and_acids"/>
  <enum-item name="chemistry_laboratory_systematic_experiments"/>
  <enum-item name="chemistry_laboratory_glass_flask"/>
  <enum-item name="chemistry_laboratory_glass_beaker"/>
  <enum-item name="chemistry_laboratory_glass_vial"/>
  <enum-item name="chemistry_laboratory_glass_funnel"/>
  <enum-item name="chemistry_laboratory_crucible"/>
  <enum-item name="chemistry_chemicals_nitric_acid"/>
  <enum-item name="chemistry_chemicals_sulfuric_acid"/>
  <enum-item name="chemistry_chemicals_aqua_regia"/>
  <enum-item name="chemistry_laboratory_glass_ampoule"/>
  <enum-item name="chemistry_laboratory_glass_retort"/>
  <enum-item name="chemistry_laboratory_lab_ovens"/>
  <enum-item name="geography_surveying_basic" value="256"/>
  <enum-item name="geography_surveying_staff"/>
  <enum-item name="geography_cartography_basic"/>
  <enum-item name="geography_surveying_triangulation"/>
  <enum-item name="geography_surveying_cartographical"/>
  <enum-item name="geography_surveying_land"/>
  <enum-item name="geography_surveying_military"/>
  <enum-item name="geography_surveying_engineering"/>
  <enum-item name="geography_cartography_geological"/>
  <enum-item name="geography_cartography_grid_system"/>
  <enum-item name="geography_cartography_distance_scale"/>
  <enum-item name="geography_cartography_height_measurements"/>
  <enum-item name="geography_method_economic_data_collection"/>
  <enum-item name="geography_cartography_economic"/>
  <enum-item name="geography_form_atlas"/>
  <enum-item name="geography_theory_delta_formation"/>
  <enum-item name="geography_theory_wind_patterns"/>
  <enum-item
      name="geography_theory_origin_of_rainfall_from_evap_condense"/>
  <enum-item name="geography_theory_water_cycle"/>
  <enum-item name="geography_theory_latitude_climate_zones"/>
  <enum-item name="geography_cartography_accurate_maps"/>
  <enum-item name="geography_cartography_map_projections"/>
  <enum-item name="medicine_theory_disease_and_fouled_water"
      value="288"/>
  <enum-item name="medicine_method_physical_examination"/>
  <enum-item name="medicine_method_autopsy"/>
  <enum-item name="medicine_theory_prognosis"/>
  <enum-item name="medicine_tool_herbal_remedies"/>
  <enum-item name="medicine_tool_animal_remedies"/>
  <enum-item name="medicine_tool_mineral_remedies"/>
  <enum-item name="medicine_tool_bandages"/>
  <enum-item name="medicine_theory_disease_classification"/>
  <enum-item name="medicine_theory_toxicology"/>
  <enum-item name="medicine_theory_acute_and_chronic_conditions"/>
  <enum-item name="medicine_theory_endemic_disease"/>
  <enum-item name="medicine_theory_epidemic_disease"/>
  <enum-item name="medicine_theory_exacerbation"/>
  <enum-item name="medicine_theory_paroxysm"/>
  <enum-item name="medicine_theory_relapse"/>
  <enum-item name="medicine_theory_convalescence"/>
  <enum-item name="medicine_method_treatment_of_traumatic_injuries"/>
  <enum-item name="medicine_method_fracture_treatment"/>
  <enum-item name="medicine_theory_fracture_classification"/>
  <enum-item name="medicine_tool_traction_bench"/>
  <enum-item name="medicine_method_fracture_immobilization"/>
  <enum-item name="medicine_tool_orthopedic_cast"/>
  <enum-item name="medicine_method_surgery_excision"/>
  <enum-item name="medicine_method_surgery_incision"/>
  <enum-item name="medicine_method_hernia_surgery"/>
  <enum-item name="medicine_method_tracheotomy_surgery"/>
  <enum-item name="medicine_method_lithotomy_surgery"/>
  <enum-item name="medicine_method_surgery_scraping"/>
  <enum-item name="medicine_method_surgery_draining"/>
  <enum-item name="medicine_method_surgery_probing"/>
  <enum-item name="medicine_method_surgery_suturing"/>
  <enum-item name="medicine_method_surgery_ligature" value="320"/>
  <enum-item name="medicine_theory_surgical_models"/>
  <enum-item name="medicine_tool_mud_bags_as_surgical_models"/>
  <enum-item name="medicine_tool_plants_as_surgical_models"/>
  <enum-item name="medicine_tool_animals_as_surgical_models"/>
  <enum-item name="medicine_theory_specialized_surgical_instruments"/>
  <enum-item name="medicine_tool_forceps"/>
  <enum-item name="medicine_tool_scalpel"/>
  <enum-item name="medicine_tool_surgical_scissors"/>
  <enum-item name="medicine_tool_surgical_needles"/>
  <enum-item name="medicine_method_cataract_surgery"/>
  <enum-item name="medicine_method_cauterization"/>
  <enum-item name="medicine_method_anesthesia"/>
  <enum-item name="medicine_theory_pulmonary_medicine"/>
  <enum-item name="medicine_theory_anatomical_studies"/>
  <enum-item name="medicine_theory_classification_of_bodily_fluids"/>
  <enum-item name="medicine_theory_eye_anatomy"/>
  <enum-item name="medicine_theory_motor_vs_sensory_nerves"/>
  <enum-item name="medicine_theory_nervous_system_function"/>
  <enum-item name="medicine_theory_reaction_time"/>
  <enum-item name="medicine_theory_blood_vessels"/>
  <enum-item name="medicine_theory_pulmonary_circulation"/>
  <enum-item name="medicine_theory_comparative_anatomy"/>
  <enum-item name="medicine_theory_the_voice"/>
  <enum-item name="medicine_theory_classification_of_muscles"/>
  <enum-item
      name="medicine_theory_classification_of_mental_illnesses"/>
  <enum-item name="medicine_theory_treatment_of_mental_illnesses"/>
  <enum-item name="medicine_tool_dedicated_hospitals"/>
  <enum-item name="medicine_method_professional_hospital_staff"/>
  <enum-item name="medicine_method_specialized_wards"/>
  <enum-item name="medicine_method_hospital_lab"/>
  <enum-item name="medicine_method_medical_school"/>
  <enum-item name="medicine_method_asylum_for_mentally_ill"
      value="352"/>
  <enum-item name="engineering_horology_shadow_clock" value="384"/>
  <enum-item name="engineering_horology_water_clock"/>
  <enum-item name="engineering_horology_conical_water_clock"/>
  <enum-item name="engineering_horology_water_clock_reservoir"/>
  <enum-item name="engineering_horology_astrarium"/>
  <enum-item name="engineering_horology_hourglass"/>
  <enum-item name="engineering_horology_mechanical_clock"/>
  <enum-item name="engineering_machine_theory_of_pulley"/>
  <enum-item name="engineering_machine_pulley"/>
  <enum-item name="engineering_machine_theory_of_screw"/>
  <enum-item name="engineering_machine_screw"/>
  <enum-item name="engineering_machine_theory_of_wheel_and_axle"/>
  <enum-item name="engineering_machine_windlass"/>
  <enum-item name="engineering_machine_theory_of_wedge"/>
  <enum-item name="engineering_machine_theory_of_lever"/>
  <enum-item name="engineering_machine_lever"/>
  <enum-item name="engineering_machine_straight_beam_balance"/>
  <enum-item name="engineering_machine_theory_of_gears"/>
  <enum-item name="engineering_machine_warded_lock"/>
  <enum-item name="engineering_machine_tumbler_lock"/>
  <enum-item name="engineering_machine_padlock"/>
  <enum-item name="engineering_machine_camshaft"/>
  <enum-item name="engineering_machine_crankshaft"/>
  <enum-item name="engineering_machine_water_powered_sawmill"/>
  <enum-item name="engineering_machine_chariot_odometer"/>
  <enum-item name="engineering_machine_chain_drive"/>
  <enum-item name="engineering_machine_mechanical_compass"/>
  <enum-item name="engineering_machine_differential_gear"/>
  <enum-item name="engineering_machine_combination_lock"/>
  <enum-item name="engineering_machine_verge_escapement"/>
  <enum-item name="engineering_machine_balance_wheel"/>
  <enum-item name="engineering_fluid_theory_of_siphon"/>
  <enum-item name="engineering_fluid_valves" value="416"/>
  <enum-item name="engineering_fluid_force_pump"/>
  <enum-item name="engineering_optics_crystal_lens"/>
  <enum-item name="engineering_optics_water_filled_spheres"/>
  <enum-item name="engineering_optics_glass_lens"/>
  <enum-item name="engineering_optics_camera_obscura"/>
  <enum-item name="engineering_optics_parabolic_mirror"/>
  <enum-item name="engineering_optics_theory_of_color"/>
  <enum-item name="engineering_optics_theory_of_rainbows"/>
  <enum-item name="engineering_optics_law_of_refraction"/>
  <enum-item name="engineering_design_models_and_templates"/>
  <enum-item name="engineering_construction_wood_lamination"/>
  <enum-item name="engineering_astronomy_dioptra"/>
  <enum-item name="engineering_astronomy_astrolabe"/>
  <enum-item name="engineering_astronomy_armillary_sphere"/>
  <enum-item name="engineering_astronomy_spherical_astrolabe"/>
  <enum-item name="engineering_astronomy_mural_instrument"/>
  <enum-item name="engineering_astronomy_orrery"/>
  <enum-item name="engineering_machine_water_powered_trip_hammer"/>
  <enum-item name="engineering_machine_double_acting_piston_bellows"/>
  <enum-item name="engineering_fluid_archimedes_principle"/>
  <enum-item name="engineering_optics_atmospheric_refraction"/>
  <enum-item name="engineering_optics_cause_of_twilight"/>
  <enum-item name="engineering_optics_height_of_atmosphere"/>
  <enum-item name="engineering_machine_piston"/>
  <enum-item name="engineering_machine_crank"/>
  <enum-item name="engineering_machine_bellows"/>
  <enum-item name="engineering_machine_water_powered_piston_bellows"/>
  <enum-item name="engineering_machine_water_wheel"/>
  <enum-item name="engineering_machine_trip_hammer"/>
  not in DF
</enum-type>