Digital resources in the Social Sciences and Humanities OpenEdition Our platforms OpenEdition Books OpenEdition Journals Hypotheses Calenda Libraries OpenEdition Freemium Follow us

What the Official Databases Do Not Do: Three Open tools for UN Human Rights Research

By Łukasz Szoszkiewicz

The United Nations (UN) human rights system produces a vast amount of documents. Recommendations to states, interpretation of treaty obligations, the votes that produced the mandates – all of it is public, and much of it is available in official databases. And yet answering an ordinary research question about it can still take days. Over the past months, I have built three open tools, one of them as my re:constitution fellowship project, each addressing a different problem. This post explains what they do and how human rights experts can leverage artificial intelligence (AI) to produce tools that allow browsing through documents.

two piles of paper next to each other in black and white
Image by Ag Ku via Pixabay.

Three databases, three different problems

It is tempting to say that the trouble with UN human rights data is that there is too much of it: treaties, general comments, concluding observations, views adopted under complaint mechanisms, statements, thematic reports, country-visit reports, transcripts of meetings, and others. Depending on which body of material you approach, you may encounter different obstacles for analysis at scale.

The following three questions might be reasonably asked by a researcher or an advocate: What have UN bodies told Poland and Hungary about judicial independence since 2016? What have the treaty bodies actually said, as a matter of interpretation, about the dismissal of judges? And how have states voted when human rights resolutions came in front of the Human Rights Council?

All three are answerable in principle – the data exists – but each one is challenging for a different reason:

1. The first question runs into a ‘Universal Human Rights Index’ (UHRI)– a database that is very good at retrieving simple keywords but lacks support for complex queries and visualizations.

2. The second runs into material that is not indexed at the level of individual paragraphs, which means that you need to manually search through PDFs using ctrl+f.

3. The third runs into information that was published as documents and never structured as data.

These three different problems are among the many I have frequently encountered in my research. For this reason, I built three simple tools that aim to provide at least first insight into data before deciding where to look, and for what, in the vast amount of UN documents.

1. UHRI+: the retrieval works, the analysis has to be rebuilt by hand

Graphic
UHRI+, comparison view: Poland and Hungary side by side, with recommendations broken down by mechanism family over time. Screenshot by the author, 17 September 2026.

The Universal Human Rights Index (UHRI) by the Office of the High Commissioner for Human Rights (OHCHR) is one of the richest sources in international human rights law. It is authoritative, free, and it already gives you the recommendations one by one, with their document symbols. You may ask what the Committee on Economic, Social and Cultural Rights (CESCR)said to Poland in 2024 and it will be able to find that information.

The difficulty begins one step later, when the question is not about one country and one Committee but about a pattern: whether the Universal Periodic Review says something different from the treaty bodies, for instance, or whether the language changed after 2016, how two states compare, etc. Now you need to hold several hundred (or thousand) recommendations in view at once, group them, mark the ones that matter, record why, and hand the result to a colleague in a form they can check and build on. At that point, researchers and NGO staff export it to a spreadsheet and rebuild the same workflow by hand, differently every time: a coding scheme, a comparison table, a chart, a set of quotations with citations. That layer is invisible, unshared and unreproducible, and it consumes most of the working time.

UHRI+, developed during my re:constitution fellowship in cooperation with Human Rights Information and Documentation Systems (HURIDOCS), builds that layer and attaches it to the data. It covers more than 270,000 recommendations and observations addressed to states by the treaty bodies, the Universal Periodic Review and the Special Procedures since 2006 – the whole corpus available on the Universal Human Rights Index.

Returning to Poland and Hungary, a single query for judicial independence, limited to Poland since 2016, brings all three mechanisms into one view: the 2022 Universal Periodic Review, where Uruguay asked Poland to guarantee that judges “are able to carry out their functions without fear of being subjected to reprisals or other forms of persecution” (A/HRC/52/15, rec. 114.91), and the 2024 concluding observations of the CESCR, recommending that Poland’s “procedures for the selection and appointment of judges and prosecutors [shall] comply with the Covenant and relevant international standards, including the Basic Principles on the Independence of the Judiciary.” (E/C.12/POL/CO/7, para. 9).

Beyond retrieval, the dashboard provides the analytical layer that researchers would otherwise rebuild by hand in a spreadsheet. Country, theme and mechanism profiles sit side by side and two states can be compared directly. A geographic map and thematic timelines show where review effort was made. Records can be bookmarked, and each one can carry a private note that stays on the reader’s own device. A labels workspace lets users define coding rules in boolean form (using operators AND, OR, NOT), apply them across the whole corpus and share the resulting taxonomy, which turns a personal coding scheme into something another researcher can inspect and criticise.

One part of this was unglamorous but necessary. The index carries two decades of optical character recognition (OCR) and conversion artifacts, in particular sentences broken mid-word. Harmless when you read one recommendation, and a silent distortion when you run keyword-based search over 270,000 entries. A documented five-stage pipeline edited roughly a fifth of the records, the cleaned dataset is versioned on Hugging Face, and a toggle lets you replace the cleaned dataset with the original OHCHR UHRI text. Users are also allowed to upload their own Excel files as long as they follow the structure used by the tool.

2. UN Human Rights Database: the passages are not indexed at all

Search down terms for dismissal of judges
UN Human Rights Database, paragraph-level results for ‘dismissal of judges’. Screenshot by the author, 17 September 2026.

Recommendations tell you what a state was asked to do. They rarely tell you what the legal basis for an obligation is. The interpretation of treaty-based obligations lives in General Comments while their application can be found in the views adopted on individual complaints. Another useful source for reconstructing normative content of human rights are thematic reports of Special Procedures of the Human Rights Council (HRC). Here the starting point is considerably worse than with the UHRI. That material is not indexed at the level of the individual paragraph. It is distributed as PDFs, and the working method is to open them one at a time and press ctrl+f .

The UN Human Rights Database, developed with Zuzanna Kowalska, reconstructs those documents as searchable paragraphs while keeping each one attached to its document symbol and number. It now holds over 320,000 paragraphs from more than 6,000 documents: the General Comments and General Recommendations of all treaty bodies, over 4,300 decisions on individual communications from all complaint mechanisms, and around 1,600 Special Procedures thematic reports.

What this changes is best seen on the second question above. A search for the “dismissal of judges” returns 16 passages from 12 documents, and in one list: the norm as the HRC stated it in General Comment No. 32 – that dismissal by the executive before the expiry of a term, “without any specific reasons given to them and without effective judicial protection being available to contest the dismissal is incompatible with the independence of the judiciary” (CCPR/C/GC/32, para. 20) – alongside its application in individual cases, and the interpretation provided by the Special Rapporteur on the independence of judges and lawyers, who records concerns about executive and parliamentary control over judicial discipline across a number of states (A/HRC/11/41, para. 60). Hence, norm, application and pattern are in a single query.

Two features go beyond traditional search. Ask lets you type a legal question in plain language, as you would ask a colleague with legal expertise, and returns the paragraphs from UN documents that best answer it – quoted word for word and ordered from most to least relevant. Technically, it is a simple form of retrieval-augmented generation (RAG): a search engine first finds the relevant passages, and AI would normally then write an answer based on them. I decided to significantly limit the contribution of Large Language Models (LLM) to answer generation, so the system does not generate a summary but simply provides related paragraphs. For this reason, there is nothing in the answer that a treaty body did not write and hallucinations are reduced. Citation Check performs the reverse process: paste a passage of your own draft and it verifies whether the UN citations in it exist, whether the paragraph numbers are right and whether the quotation matches the source. In an era of AI-drafted footnotes, that is turning out to be the more requested of the two.

3. UN Human Rights Voting Records: published as documents, never structured as data

Voting records
HRC Voting: recorded votes per year across the Commission on Human Rights and the Human Rights Council, 1947–2026. Screenshot by the author, 17 September 2026.

The third question is political rather than doctrinal, and it fails for a third reason. Voting records of the Commission on Human Rights, the Human Rights Council and the Third Committee of the UN General Assembly have always been public. They were published as documents, one resolution at a time, across eight decades.

HRC Voting turns these documents into a visual dashboard. It covers the Commission on Human Rights from 1947 to 2006 and the Human Rights Council since, with the Third Committee of the General Assembly added recently. In total, more than 6,300 catalogued texts, of which about 2,000 were decided by a recorded vote, and over 129,000 individual country votes, harvested from the OHCHR Search Library and normalised into a single dataset.

With the records as data, questions that were previously unanswerable become routine. How cohesive is a regional bloc, and on which subjects does it fracture? Which states vote together most often, and has that changed since 2006? How has the directive force of the language shifted over time? The dashboard supports voting-coincidence matrices, bloc cohesion measures and subject-based comparison across the history of both bodies. The dataset is archived with a Zenodo DOI and the harvesting pipeline is open.

What the three have in common

The three tools share a design: the basic level of analysis is the paragraph, verbatim and traceability; the scripts and datasets are open (available on GitHub and HuggingFace).

AI assistants such as ChatGPT, Gemini or Claude are now routinely used to ask legal questions, and they still invent document symbols and paragraph numbers (although much less frequently than many think). Still, for a field whose currency is the exact wording of a source, that is disqualifying. The corpora are therefore exposed to AI assistants through mcp-unhrdb, an open-source Model Context Protocol server. An assistant connected to it retrieves real paragraphs and real recommendations with their symbols instead of generating plausible-sounding ones. This one, relatively simple step, significantly improves the quality of citations, although a researcher should be aware that as long as an LLM is involved in text generation, something can go wrong (for this reason, I dropped text generation in the Ask feature and limited RAG search to retrieving verbatim paragraphs).

A fourth tool is in development on the same principles. HUDOC+, developed together with Sebastian Marcisz, applies the paragraph-level approach to the case law of the European Court of Human Rights, with citation tracking between judgments. An experimental beta is available at the link.

A note on how this was built – and what skills become important for human rights experts

This question comes up whenever I present these tools.

I am a lawyer with basic programming knowledge, not a software engineer. Before the current generation of AI assistants I wrote small scripts for text analysis in Python and R, the sort of thing a researcher writes to get through a corpus: shaky, slow and just about sufficient. Running them took some programming knowledge and a properly configured laptop, so most of my collaborators simply would not use them. Putting a graphical interface on top was never worth starting: that meant not only the time to build it, but somewhere to host it and the work of keeping it updated afterwards, with no way of knowing in advance whether anyone would use it. What changed since is not that I learned to program better. It is that AI assistants have become so good at writing simple scripts (first) and more complex programs (later) that what took me hours and days, currently takes minutes and hours.

The division of labour between me and the AI is important here. I decide which question is worth asking (or problem worth solving), what should be included in the corpus, which reliable sources to check the results against, how to segment individual entries (e.g., document-level, paragraph-level), which section of documents should be annotated (e.g., admissibility, justification, separate opinion, etc.), and what a wrong result looks like. The AI is used here only as a programmer: it writes the code that carries out these decisions. At the user level, no AI is involved – there are deterministic scripts which follow the rules I defined (for instance, how keywords are matched, which Boolean operators are available and what the default search mode is) and produces the visualization I asked for. The expert judgement stays with me; only the writing of the code is delegated.

What matters most is what comes out of that process: an ordinary deterministic program. It behaves identically every time, and it can be read. This is the opposite of handing the documents directly to an AI assistant (an LLM-based chatbot) and asking what they say. What the chatbots do is writing a script to execute our command but the script they write is slightly different every time (similarly to the text – each time you ask a question, you receive a slightly different answer) and, for this reason, cannot be entirely relied upon. A chatbot that reads 270,000 recommendations and produces a beautiful chart does not show, if not specifically asked, the script it has generated. An LLM-generated script – if saved on a desktop or hosted on a server – can be re-run by someone who has every reason to distrust me. This is how UHRI+ and other tools have been built and I disclose all the codebase – mostly AI-generated – in the GitHub repository.

That also makes the error problem tractable. Code written by a model can be wrong, but it fails in ways two ordinary checks will catch. The first is reading it, which is where programming basics help. The second is testing against what you already know: if a mandate was established in 2018 and the pipeline returns nothing for it, the pipeline is broken, whatever the code looks like. Domain expertise turns out to be a testing instrument.

One last note: Most of the problems lawyers and human rights researchers face in their daily work do not require hard computer science. Working through several thousand documents with ctrl+f is tedious rather than difficult. An engineer would not call the solution AI. They would call it basic natural language processing and write it in an afternoon. The gap was never technical difficulty – it was that the person with the question and the person who could write that afternoon’s code were rarely the same person, and often never met. And even if they met – they spoke two different languages (law vs programming), which was sometimes fruitful (we learn from each other) but sometimes disappointing (due to resource constraints, chasing project deadlines, etc.). Closing that gap from the lawyer’s side is now realistic, and it is the skill I think our profession is currently missing. Andrej Karpathy, one of the leading voices in AI, compares LLMs to new operating systems (such as Windows or Linux), which we can operate using natural language. He also coined a famous phrase “English is the new programming language” and the term “vibecoding” which became a Collins Dictionary’s word of the year.

The capabilities of AI assistants in programming have reached the point where most everyday retrieval and pre-analytical work, obtaining the data online, cleaning it, organising it, producing the dedicated interfaces to gain quick insights into the textual datasets, can be significantly accelerated (note that I mean cutting-edge models under premium tiers, such as OpenAI’s 6 Astra or Anthropic’s Fable 5.1 – free tiers are rarely useful for anything bigger). My view is that anyone running a research project that involves text analysis should now start by asking which part of the tedious work can be handled this way, because the answer decides the scope and where human attention goes. It should go to the conceptual and strictly analytical questions – the exact tasks to be delegated will differ between fields and subfields, and, as the concept of the ‘jagged technological frontier’ suggests, they won’t be intuitive to identify at first glance. Nevertheless, I provide three examples (yes, AI loves the rule of three, but so do I, and these ones are mine):

  1. Aim for completeness: Does the analysis cover the whole corpus rather than a convenient sample? Would a freedom-of-information request widen the set beyond what happens to be available freely online? Should those old scanned PDFs be put through OCR again to repair artifacts that may impact our search (e.g., corrupted pages)?
  2. Support your quantitative claims with data: We tend to use phrases such as a “dominant line of case law” or a “majority of judgments” because we know it. But we can be wrong or we can overlook a new trend already emerging in data. Now, we can back every claim with the numbers much easier than before. Of course, you will not do it when writing a blog or social media post, but anything bigger than that might justify investing a few hours in downloading the corpus and doing quick checks for the validity of our claims. Also, you can publish a dashboard or design an agent, so everyone can investigate the corpus and retrieve every source that supports tour claim. Note this is not sci-fi, Nature has recently published an article suggesting that scientists should reimagine papers as AI agents.
  3. Verify at the source instead of relying on secondary literature: A claim published in 2019 rests on research finished a year or two earlier, and repeating it in 2026 without going back to the source means asserting something nobody has checked for the better part of a decade, whether, for example, a provision really had never been invoked before. Such a task could have required a week of manual analysis a decade ago, but it might be the case that now it takes minutes or hours.

There are more, but they would require a blog post series.

Limits, and an invitation

These are independent academic projects. They are not endorsed by OHCHR or the UN, and the official databases remain authoritative. Every cleaning decision is a choice, which is why the pipelines are published and the raw text is one click away. Counts change with regular refreshes, so they should be cited with the dataset version. Some features are in beta, the software is released under non-commercial licences and the datasets under Creative Commons.

If you work on democracy and the rule of law in Europe and have a question these sources should be able to answer but cannot, I would like to hear about it.

Disclosure: an AI assistant helped draft and edit this post, as it helped write the tools it describes. The argument, the choice of examples and the verification of every quotation and figure are mine.


About the Author
Łukasz Szoszkiewicz is an Assistant Professor at the Faculty of Law and Administration, Adam Mickiewicz University in Poznań, and Director for European Affairs at the Neurorights Foundation. He was a re:constitution Fellow in 2025/26, hosted by HURIDOCS, and a Fulbright Scholar at the Neurotechnology Center of Columbia University in 2024/25. His research focuses on new technologies and international human rights law, with a particular focus on the UN treaty body system. Alongside his academic work he builds open tools for human rights law, including UHRI+, the UN Human Rights Database and the HRC Voting dashboard. More at lszoszk.github.io and LinkedIn.


Links


Acknowledgements
UHRI+ was developed within the re:constitution fellowship 2025/26 (Forum Transregionale Studien and Democracy Reporting International, funded by Stiftung Mercator) hosted at HURIDOCS. All projects are independent of OHCHR and the United Nations.

Citation:
Łukasz Szoszkiewicz, “What the Official Databases Do Not Do: Three Open tools for UN Human Rights Research”, TRAFO – Blog for Transregional Research, 13.10.26, https://trafo.hypotheses.org/69222


The text only may be used under licence Creative Commons Attribution Non Commercial No Derivatives 4.0 International. All other elements (illustrations, imported files) are “All rights reserved”, unless otherwise stated.


OpenEdition suggests that you cite this post as follows:
Forum Transregionale Studien (October 13, 2026). What the Official Databases Do Not Do: Three Open tools for UN Human Rights Research. TRAFO – Blog for Transregional Research. Retrieved November 11, 2026 from https://doi.org/10.58079/16xxu


You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.