{
  "id": 23727727,
  "title": "3-Decimal MENA E-Invoicing (Jordan JoFotara, Bahrain, Oman), dbt/DuckDB, Arabic RAG & W3C did:web Provenance",
  "url": "https://urgent.news/2026/12/05/3-decimal-mena-e-invoicing-jordan-jofotara-bahrain-oman-dbt-duckdb",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-12-05T23:58:22.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/nbrain/3-decimal-mena-e-invoicing-jordan-jofotara-bahrain-oman-dbtduckdb-arabic-rag-w3c-didweb-22gh"
  },
  "original_language": null,
  "account": "Three Middle Eastern and North African countries - Jordan, Bahrain, Oman, Kuwait, and Qatar - have adopted 3-decimal currencies (JOD, BHD, OMR, KWD) for their financial transactions. NBrain and its creator, Nadeem Mohamed Badr El-Din, have released six new open-source MIT repositories that address specific challenges faced by engineering software in the region. These include:\n\n1. Jordan JoFotara's e-invoicing solution, which enforces exact Decimal (ROUND_HALF_UP) math across the three-decimal currencies of Jordan, Bahrain, Oman, Kuwait, and Qatar. The solution includes VAT validation for each country.\n\n2. A dbt package and DuckDB SQL tax macros that allow data engineering teams to compute regional finance rollups in warehouses with deterministic DECIMAL(18,3) / DECIMAL(18,2) dbt Jinja macros and native DuckDB SQL macros for the MENA region.\n\n3. A deterministic Arabic RAG (Retrieval-Augmented Generation) and GEO-SFE (Geospatial Feature Extraction) engine that improves LLM citation accuracy by +17.3% compared to previous research. The engine normalizes Arabic text, chunks passages, scores results using a hybrid BM25 + RRF algorithm, and verifies citation-lock verification with SHA-256.\n\n4. A JetBrains IDE plugin and open API collections that enable developers to inspect Saudi ZATCA TLV, UAE TRN, and Jordan JoFotara invoices directly within popular IDEs like IntelliJ IDEA, PyCharm, PhpStorm, and WebStorm. The plugin also targets the live nbra.in OpenAPI 3.1 / MCP endpoints.\n\n5. A 2026 cryptographic provenance and agent-ready web kit that generates W3C did:web identity documents, C2PA v2.1 content-credential sidecar manifests, and various file formats to support the next generation of web standards in the MENA region.\n\n6. A reproducible Kaggle dataset and CPU evaluation notebook that verifies 60 deterministic 3-decimal/2-decimal MENA tax rows and 24 Arabic citation-lock test cases. The dataset is licensed under CC-BY-SA-4.0 and includes tools such as ZATCA QR Inspector, UAE Peppol PINT-AE Validator, and DICOM Clinical Anonymizer.",
  "summary": "Engineering software across the Middle East and North Africa exposes subtle failure modes that standard Western finance and AI stacks routinely miss: 3-decimal currencies ( JOD , BHD , OMR , KWD quantized to 0.001 where IEEE-754 binary floats quietly drift), Arabic orthographic variance in RAG retrieval, and machine-verifiable brand/software provenance for 2026 AI answer engines. Today NBrain (…",
  "summary_source": "publisher",
  "key_points": [
    "Jordan, Bahrain, Oman, Kuwait, and Qatar adopted 3-decimal currencies (JOD, BHD, OMR, KWD)",
    "NBrain released six open-source MIT repositories addressing regional software challenges",
    "Deterministic Arabic RAG and GEO-SFE engine improves LLM citation accuracy by +17.3%"
  ],
  "editors_take": "These new open-source tools help regional engineers handle complex three-decimal currency math and improve Arabic language accuracy for financial and data engineering tasks.",
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "outlets_capped": false,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}