Download data/taxonomy_catala_tree.json from yamero999/law2code: direct link, hf CLI and curl.
- Browser
- Download file 10.3 kB
-
https://huggingface.co/spaces/yamero999/law2code/resolve/main/data/taxonomy_catala_tree.json
- Command line
-
hf download hf://spaces/yamero999/law2code/data/taxonomy_catala_tree.json
-
curl -L -o taxonomy_catala_tree.json https://huggingface.co/spaces/yamero999/law2code/resolve/main/data/taxonomy_catala_tree.json
10.3 kB
| { | |
| "taxonomy_name": "Hohfeldian_Catala_Statutory_Tree", | |
| "version": "1.0.0", | |
| "description": "Hierarchical decision tree for routing statutory operands into typed Catala AST slots", | |
| "root": "STATUTORY_SPAN", | |
| "branches": { | |
| "NUMERIC_METRIC": { | |
| "branch_id": "BRANCH_NUMERIC_METRIC", | |
| "catala_type": "money", | |
| "usvm_unit": "CURRENCY_PAISA", | |
| "description": "Financial bases, monetary quantities, and computational denominators", | |
| "leaves": [ | |
| { | |
| "leaf_id": "BASE_INCOME", | |
| "catala_variable": "income", | |
| "catala_declaration": "data income content money", | |
| "usvm_fact_key": "taxableIncomePaisa", | |
| "keywords": ["income", "total income", "gross income", "taxable income", "profits", "gains", "benefit or perquisite", "gross total income", "profit"] | |
| }, | |
| { | |
| "leaf_id": "BASE_TAX", | |
| "catala_variable": "tax_amount", | |
| "catala_declaration": "data tax_amount content money", | |
| "usvm_fact_key": "statutoryTaxPaisa", | |
| "keywords": ["tax", "income - tax", "income-tax", "income tax", "tax imposed", "cess"] | |
| }, | |
| { | |
| "leaf_id": "BASE_TURNOVER", | |
| "catala_variable": "turnover", | |
| "catala_declaration": "data turnover content money", | |
| "usvm_fact_key": "buyerPriorTurnoverPaisa", | |
| "keywords": ["turnover", "total sales", "gross receipts", "sales"] | |
| }, | |
| { | |
| "leaf_id": "BASE_CONSIDERATION", | |
| "catala_variable": "consideration", | |
| "catala_declaration": "data consideration content money", | |
| "usvm_fact_key": "transactionAmountPaisa", | |
| "keywords": ["consideration", "purchase price", "value of supply", "sum payable", "proceeds", "value", "cost", "amount", "sum"] | |
| }, | |
| { | |
| "leaf_id": "BASE_RENT", | |
| "catala_variable": "rent", | |
| "catala_declaration": "data rent content money", | |
| "usvm_fact_key": "rentAmountPaisa", | |
| "keywords": ["rent", "lease rentals", "hire charges", "tenancy premium"] | |
| }, | |
| { | |
| "leaf_id": "BASE_SALARY", | |
| "catala_variable": "salary", | |
| "catala_declaration": "data salary content money", | |
| "usvm_fact_key": "salaryPaisa", | |
| "keywords": ["salary", "wages", "remuneration", "perquisite value"] | |
| }, | |
| { | |
| "leaf_id": "BASE_INTEREST", | |
| "catala_variable": "interest", | |
| "catala_declaration": "data interest content money", | |
| "usvm_fact_key": "interestPaisa", | |
| "keywords": ["interest", "interest on securities", "discount on bonds"] | |
| }, | |
| { | |
| "leaf_id": "BASE_DIVIDEND", | |
| "catala_variable": "dividend", | |
| "catala_declaration": "data dividend content money", | |
| "usvm_fact_key": "dividendPaisa", | |
| "keywords": ["dividend", "deemed dividend", "interim dividend"] | |
| }, | |
| { | |
| "leaf_id": "BASE_CONTRACT_SUM", | |
| "catala_variable": "contract_sum", | |
| "catala_declaration": "data contract_sum content money", | |
| "usvm_fact_key": "contractAmountPaisa", | |
| "keywords": ["works contract sum", "freight", "carriage", "advertisement fee"] | |
| }, | |
| { | |
| "leaf_id": "BASE_ACCUMULATED_BALANCE", | |
| "catala_variable": "accumulated_balance", | |
| "catala_declaration": "data accumulated_balance content money", | |
| "usvm_fact_key": "accumulatedBalancePaisa", | |
| "keywords": ["accumulated balance", "provident fund balance", "superannuation balance"] | |
| }, | |
| { | |
| "leaf_id": "BASE_LOSS", | |
| "catala_variable": "loss", | |
| "catala_declaration": "data loss content money", | |
| "usvm_fact_key": "statutoryLossPaisa", | |
| "keywords": ["casualty loss", "capital loss", "business loss", "depreciation loss"] | |
| }, | |
| { | |
| "leaf_id": "BASE_DEPRECIATION", | |
| "catala_variable": "depreciation", | |
| "catala_declaration": "data depreciation content money", | |
| "usvm_fact_key": "writtenDownValuePaisa", | |
| "keywords": ["depreciation", "written down value", "actual cost", "unabsorbed depreciation"] | |
| } | |
| ], | |
| "fallback": { | |
| "fallback_id": "BASE_CUSTOM", | |
| "catala_declaration_pattern": "data {snake_case_noun} content money", | |
| "naming_rule": "snake_case(strip_determiners(span_text))", | |
| "description": "Safety leaf for novel financial concepts" | |
| } | |
| }, | |
| "CATEGORY_FILTER": { | |
| "branch_id": "BRANCH_CATEGORY_FILTER", | |
| "catala_type": "boolean", | |
| "usvm_unit": "BOOLEAN_FLAG", | |
| "description": "Categorical qualifications, statutory conditions, and scope predicates", | |
| "leaves": [ | |
| { | |
| "leaf_id": "FILTER_GOODS", | |
| "catala_variable": "is_goods", | |
| "catala_declaration": "data is_goods content boolean", | |
| "usvm_guard_field": "isGoods", | |
| "keywords": ["goods", "movable property", "merchandise", "wares"] | |
| }, | |
| { | |
| "leaf_id": "FILTER_SERVICES", | |
| "catala_variable": "is_services", | |
| "catala_declaration": "data is_services content boolean", | |
| "usvm_guard_field": "isServices", | |
| "keywords": ["services", "provision of service", "professional services"] | |
| }, | |
| { | |
| "leaf_id": "FILTER_CAPITAL_ASSET", | |
| "catala_variable": "is_capital_asset", | |
| "catala_declaration": "data is_capital_asset content boolean", | |
| "usvm_guard_field": "isCapitalAsset", | |
| "keywords": ["capital asset", "shares", "securities", "virtual digital asset", "machinery", "plant", "equipment"] | |
| }, | |
| { | |
| "leaf_id": "FILTER_IMMOVABLE_PROPERTY", | |
| "catala_variable": "is_immovable_property", | |
| "catala_declaration": "data is_immovable_property content boolean", | |
| "usvm_guard_field": "isImmovableProperty", | |
| "keywords": ["immovable property", "land", "building", "tenement", "property"] | |
| }, | |
| { | |
| "leaf_id": "FILTER_VEHICLE", | |
| "catala_variable": "is_vehicle", | |
| "catala_declaration": "data is_vehicle content boolean", | |
| "usvm_guard_field": "isMotorVehicle", | |
| "keywords": ["motor vehicle", "conveyance", "aircraft", "vessel"] | |
| }, | |
| { | |
| "leaf_id": "FILTER_CHARITABLE", | |
| "catala_variable": "is_charitable", | |
| "catala_declaration": "data is_charitable content boolean", | |
| "usvm_guard_field": "isCharitablePurpose", | |
| "keywords": ["relief of the poor", "education", "yoga", "medical relief", "preservation of environment", "monuments"] | |
| }, | |
| { | |
| "leaf_id": "FILTER_ACTIONABLE_CLAIM", | |
| "catala_variable": "is_actionable_claim", | |
| "catala_declaration": "data is_actionable_claim content boolean", | |
| "usvm_guard_field": "isActionableClaim", | |
| "keywords": ["actionable claim", "lottery", "betting", "gambling"] | |
| } | |
| ], | |
| "fallback": { | |
| "fallback_id": "FILTER_CUSTOM", | |
| "catala_declaration_pattern": "data is_{snake_case_noun} content boolean", | |
| "naming_rule": "'is_' + snake_case(strip_determiners(span_text))", | |
| "description": "Safety leaf for novel conditions" | |
| } | |
| }, | |
| "DOC_POINTER": { | |
| "branch_id": "BRANCH_DOC_POINTER", | |
| "catala_type": "scope_reference", | |
| "description": "Cross-clause references and dynamic transaction variable bindings", | |
| "leaves": [ | |
| { | |
| "leaf_id": "SCOPE_CURRENT_SUM", | |
| "catala_binding": "in.current_payment", | |
| "keywords": ["such sum", "such payment", "payment thereof", "sum paid"] | |
| }, | |
| { | |
| "leaf_id": "SCOPE_PRIOR_ACCUMULATION", | |
| "catala_binding": "in.prior_accumulated_sum", | |
| "keywords": ["aggregate of such value", "aggregate sum", "aggregate turnover"] | |
| }, | |
| { | |
| "leaf_id": "SCOPE_SUCH_DEDUCTION", | |
| "catala_binding": "out.statutory_deduction", | |
| "keywords": ["such deduction", "amount so deducted", "credit thereof"] | |
| } | |
| ], | |
| "fallback": { | |
| "fallback_id": "SCOPE_CUSTOM", | |
| "catala_binding": "in.reference_pointer", | |
| "description": "Safety binding for unmodeled anaphora" | |
| } | |
| }, | |
| "COMPLIANCE_ATTESTATION": { | |
| "branch_id": "BRANCH_COMPLIANCE_ATTESTATION", | |
| "catala_type": "boolean", | |
| "description": "Compliance return checkpoints, identity attestations, and statutory certifications", | |
| "leaves": [ | |
| { | |
| "leaf_id": "ATTEST_PAN", | |
| "catala_variable": "has_valid_pan", | |
| "catala_declaration": "data has_valid_pan content boolean", | |
| "usvm_attestation_key": "hasValidPan", | |
| "keywords": ["Permanent Account Number", "PAN"] | |
| }, | |
| { | |
| "leaf_id": "ATTEST_AADHAAR", | |
| "catala_variable": "has_valid_aadhaar", | |
| "catala_declaration": "data has_valid_aadhaar content boolean", | |
| "usvm_attestation_key": "hasValidAadhaar", | |
| "keywords": ["Aadhaar number", "Aadhaar"] | |
| }, | |
| { | |
| "leaf_id": "ATTEST_TAX_INVOICE", | |
| "catala_variable": "has_tax_invoice", | |
| "catala_declaration": "data has_tax_invoice content boolean", | |
| "usvm_attestation_key": "invoiceReceived", | |
| "keywords": ["tax invoice", "debit note", "bill of supply"] | |
| }, | |
| { | |
| "leaf_id": "ATTEST_UDYAM", | |
| "catala_variable": "is_udyam_registered", | |
| "catala_declaration": "data is_udyam_registered content boolean", | |
| "usvm_attestation_key": "isUdyamRegistered", | |
| "keywords": ["Udyam registration", "MSME certificate"] | |
| }, | |
| { | |
| "leaf_id": "ATTEST_RETURN_FILED", | |
| "catala_variable": "is_return_filed", | |
| "catala_declaration": "data is_return_filed content boolean", | |
| "usvm_attestation_key": "returnFiledUnder139", | |
| "keywords": ["return of income", "filed return under section 139"] | |
| } | |
| ] | |
| } | |
| } | |
| } | |