    ideas = {

    is_penal_system = {
        law = yes
        use_list_view = yes

        penal_slavery = {

            available = {
                has_government = fascism
            }

            level = 3

            modifier = {
                production_speed_buildings_factor = 0.10
                repair_speed_arms_factory_factor = 0.75
                repair_speed_industrial_complex_factor = 0.75
                industry_free_repair_factor = 1
                trade_opinion_factor = -0.20
                required_garrison_factor = 0.10
                stability_factor = -0.10
            }

            ai_will_do = {
                base = 0

                modifier = {
                    has_government = fascism
                    add = 20
                }

                modifier = {
                    has_idea = racial_hierarchy
                    add = 60
                }
            }

            cancel_if_invalid = yes
        }

        penal_labour = {

            available = {

                NOT = {
                    has_government = democratic
                }
            }

            level = 2

            modifier = {
                repair_speed_arms_factory_factor = 0.25
                repair_speed_industrial_complex_factor 0.25
                industry_free_repair_factor = 0.40
            }
            
            ai_will_do = {
                base = 10

                modifier = {
                    has_government = communism
                    tag = SOV 
                    add = 70
                }

            }
            
            cancel_if_invalid = yes
        }

        penal_incarceration = {

            available = {

            }

            level = 1

            modifier = {
                political_power_factor = 0.05
                required_garrison_factor = -0.05
            }

            ai_will_do = {
                base = 40
            }

            cancel_if_invalid = no

            default = yes
        }

        penal_rehabilitation = {

            available = {

                NOT = {
                    has_government = fascism
                }
            }

            level = 2

            modifier = {
                consumer_goods_factor = 0.05
                political_power_factor = 0.10
                research_speed_factor = 0.05
            }

            ai_will_do = {
                base = 20

                modifier = {
                    has_government = democratic
                    add = 40
                }

                modifier = {
                    has_idea = welfare_capitalism 
                    add = 40
                }
                
                modifier = {
                    has_idea = workers_council
                    add = 40
                }

                modifier = {
                    has_idea = communal_council
                    add = 60
                }
            }

            cancel_if_invalid = yes
        }
    }
}