sdg-alignment
Map products, papers and grant proposals to UN Sustainable Development Goal targets, with the sentences that show it, and check SDG claims before reviewers, customers or auditors do.
pip install sdg-alignment
SDG claims are everywhere: grant forms ask for them, university rankings count them, companies put SDG icons in their reports, and software READMEs list them. Most are made at goal level ("supports SDG 13"), with no evidence and no metric. A study of 1,370 organisations' sustainability reports found the engagement superficial for the vast majority, a pattern the authors called SDG-washing (Heras-Saizarbitoria, Urbieta and Boiral, 2022). This tool helps you make claims that are specific, honest and checkable.
It works offline and has no dependencies.
| Command | What it does |
|---|---|
target |
Shows the official text of any goal, target or indicator, with notes (means-of-implementation target, deadline) |
search |
Finds targets whose official wording contains your words |
suggest |
Reads a paper, proposal, report or README and lists the targets it discusses, with the sentences that show it |
check |
Checks SDG claims: wrong or misquoted targets, goal-only claims, missing evidence, quotes not in the document, overclaiming, too many priorities, and more |
write |
Turns checked claims into a README table, a grant-proposal paragraph, schema.org JSON-LD for your web page, or CSV |
What is inside
- The official framework. All 17 goals and 169 targets, and the 251 indicator entries (234 unique indicators) of the UN list after the 2025 comprehensive review and the 2026 refinements, checked code by code against the UN SDG API on 4 Dec 2026.
- The Aurora SDG queries (v5). Expert-built keyword rules, one set per target, made by the Aurora Universities Network and used for research mapping. This package runs them with its own matcher, following Scopus rules (loose phrases, wildcards, plurals, W/n and PRE/n proximity, operator precedence).
Step by step
1. Look up a target.
sdg-alignment target 7.3
Target 7.3 (SDG 7, Affordable and clean energy)
By 2030, double the global rate of improvement in energy efficiency
7.3.1 Energy intensity measured in terms of primary energy and GDP
http://metadata.un.org/sdg/7.3
2. Find what your document is about. Works with .txt, .md, .html, .docx and .pdf (for PDF, pip install "sdg-alignment[pdf]"). A reference list at the end of a paper is left out, because cited titles mention topics the paper itself does not address.
sdg-alignment suggest my-paper.pdf
For each target found you get how many passages discuss it and the evidence sentences, plus a list of targets whose official wording overlaps most with your text (useful for short texts such as product descriptions).
3. Write your claims. Pick the one to three targets your work really moves. For each, say how, quote the evidence and, for a grant or organisation, name a metric. Save as JSON:
{
"subject": "The GBDT inference energy study",
"kind": "paper",
"claims": [
{
"target": "7.3",
"role": "primary",
"contribution": "direct",
"how": "Choosing batch size and thread count for the request pattern cut energy per prediction fourfold at the same accuracy.",
"evidence": "reduced energy per prediction by a factor of four at the same accuracy",
"metric": "Joules per 1,000 predictions, measured with CPU energy counters"
}
]
}
Fields: target (required), role (primary or secondary), contribution (direct, enabling or indirect), how, evidence (a quote from your document), indicator (an official indicator code), metric (your own measure), risks (trade-offs or limits), label (your short description of the target). A full example is in examples/claims.json.
4. Check them.
sdg-alignment check claims.json --doc my-paper.pdf -v
You can also check a README or proposal directly: the tool finds the "Sustainable Development Goals" section and reads targets from tables (| **9.5** ... | how |) or prose (supports **SDG target 9.5** (...)).
sdg-alignment check README.md --kind software
Use --strict in CI to fail on warnings too.
5. Write them out.
sdg-alignment write claims.json --format table # for a README
sdg-alignment write claims.json --format grant # a paragraph for a proposal
sdg-alignment write claims.json --format jsonld --url https://example.org/project # for your web page
sdg-alignment write claims.json --format csv
The JSON-LD lists each target as a schema.org DefinedTerm with the UN's own identifier (http://metadata.un.org/sdg/7.3), so search engines can tell exactly which targets a page is about.
What check looks for
| Finding | Level | Why |
|---|---|---|
| Target or indicator that does not exist | error | Typos and invented targets (for example 9.9 or 17.a) |
| Indicator that belongs to another target | error | |
| Evidence quote not found in the document | error | Claims must rest on what the work actually says or did |
| Whole-goal claim ("SDG 13") | warning | SDG Compass asks for priorities at target level |
| Description that adds scope to the target, or does not match it | warning | For example, describing 8.3 as "access to digital services" when the official text says financial services |
| Explanation that only restates the target | warning | Say what the work does, for whom, and what changes |
| Overclaiming words (achieve, eliminate, eradicate, solve) | warning | One project contributes; it does not achieve a global target |
| Weak topical link | warning | The explanation and evidence share little with the target and match none of its Aurora rules |
| Means-of-implementation target claimed as a direct contribution | warning | Lettered targets (x.a to x.c) and Goal 17 are about finance, technology transfer, capacity and policy between countries |
| More than 3 primary targets, more than 6 in total | warning | Broad, unprioritised claims are the SDG-washing pattern |
| No indicator or metric for a primary target (grants, projects, organisations, products) | warning | SDG Compass step 2: define indicators |
| Target worded for governments | note | Present the work as supporting those who act on it |
| Target deadline already passed (2020 or 2025) | note | The target remains, but say so |
| No limits, risks or trade-offs mentioned | note | Progress on one target can work against another (Nilsson, Griggs and Visbeck, 2016) |
How good is suggest?
Treat it as a careful reading assistant, not a judge.
- The Aurora authors measured about 70% precision and 14% recall at goal level on research papers (Schmidt and Vanderfeesten, 2021). A match means your text discusses the topic; a miss does not mean your work is unrelated.
- Different SDG mapping systems disagree a lot with each other (Armitage, Lorenz and Mikki, 2020; Wulff, Meier and Mata, 2024), so no keyword system is the final word.
- Queries are applied within abstract-sized passages (about 250 words), because Scopus applies them to a title and abstract. Long documents produce more matches; the passage count shows how central a topic is.
- Target 3.c has no Aurora rule; the general climate rule for Goal 13 is reported separately.
- A topic match is not a contribution. Only you can say what your work changes, and
checkasks you to show it.
Use it in this repository's style
Every tool in the ahmadzia.com tools has an SDG section, and a test runs check over all of them. Building this tool found real mistakes in our own READMEs: six described target 8.3 as being about "digital services" (the official text says financial services), four described 12.8 in terms of purchasing decisions or choices (the official text is about information and awareness for sustainable development and lifestyles), and seven claimed the means-of-implementation target 9.c without saying the contribution is indirect. All were corrected.
Sustainable Development Goals
This tool supports SDG target 12.6 (encourage companies to adopt sustainable practices and to integrate sustainability information into their reporting cycle): companies, universities and projects get a free way to report SDG contributions at target level, with evidence and metrics, instead of icons and goal-level claims.
It also supports target 9.5 (enhance scientific research): researchers can map papers and proposals to targets with the sentences that justify each one, and check the SDG section of a grant application before submitting it. And it supports target 17.16 (multi-stakeholder partnerships that share knowledge and expertise) indirectly, by making SDG claims comparable across the partners in a project.
What it does not do: it cannot tell whether a claimed contribution really happened. It checks wording, evidence and plausibility, and the people making the claim remain responsible for it.
References
- United Nations (2015). Transforming our world: the 2030 Agenda for Sustainable Development, A/RES/70/1. Global indicator framework: A/RES/71/313, with refinements in E/CN.3/2025/6 and E/CN.3/2026/12.
- GRI, UN Global Compact and WBCSD (2015). SDG Compass: The guide for business action on the SDGs.
- Heras-Saizarbitoria, I., Urbieta, L. and Boiral, O. (2022). Organizations' engagement with sustainable development goals: From cherry-picking to SDG-washing? Corporate Social Responsibility and Environmental Management, 29(2), 316-328.
- Nilsson, M., Griggs, D. and Visbeck, M. (2016). Map the interactions between Sustainable Development Goals. Nature, 534, 320-322.
- Aurora Universities Network (2020, v5.0.3 2021). Search Queries for "Mapping Research Output to the Sustainable Development Goals (SDGs)" v5. doi:10.5281/zenodo.3817445.
- Schmidt, F. and Vanderfeesten, M. (2021). Evaluation on accuracy of mapping science to the SDGs of the Aurora SDG queries. doi:10.5281/zenodo.4964606.
- Armitage, C. S., Lorenz, M. and Mikki, S. (2020). Mapping scholarly publications related to the Sustainable Development Goals: Do independent bibliometric approaches get the same results? Quantitative Science Studies, 1(3), 1092-1108.
- Wulff, D. U., Meier, D. S. and Mata, R. (2024). Using novel data and ensemble models to improve automated labeling of Sustainable Development Goals. Sustainability Science, 19, 1773-1787.
Licence
MIT. Bundled data: UN target and indicator texts via open-sdg/sdg-translations (MIT) and the Aurora SDG queries (CC BY 4.0); see NOTICE. Built by Ahmad Zia.
Guide, help and author
- Full guide with examples and FAQs: www.ahmadzia.com/tools/sdg-alignment
- Background reading: How much energy does an AI query use?
- All 30 free tools and agent skills: ahmadzia.com/tools · ahmadzia.com/skills
- Want it set up, fixed or tuned for your store? Book a free call
Built by Ahmad Zia (Muhammad Ahmad Zia), an AI consultant for ecommerce since 2020 and green AI researcher at the University of Lahore. Research · Google Scholar · ORCID · LinkedIn · GitHub
More compliance and sustainability tools
- dpp-readiness: Is your store ready for EU digital product passports and GPSR?
- green-claims-check: Find greenwashing risks in your product pages before regulators do
- returns-reducer: Find out why products come back and what to fix first
- ai-carbon-report: Turn LLM usage logs into an energy, carbon and water report
- green-site-audit: Measure the carbon footprint of a web page or online store
All 30 tools and agent skills: github.com/MuhammadAhmadZia · ahmadzia.com/tools
Metadata
Release files for sdg-alignment 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sdg_alignment-0.1.0.tar.gz | 64.6 kB | With provenance | Details for sdg_alignment-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sdg_alignment-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for sdg_alignment-0.1.0-py3-none-any.whl |
Total release size: 123.4 kB
Release files / sdg_alignment-0.1.0.tar.gz
| Download URL | sdg_alignment-0.1.0.tar.gz |
|---|---|
| Size | 64.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
65745a10c8953f3fafb8c09d046e02b410d8670687c7750792fd7d6946a766bf
|
|
BLAKE2b-256 checksum How to use checksums |
d76399df8a03de5d8e6d3e9980da4addeee73817f70acc8179c690259165fd6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.
Transparency logRelease files / sdg_alignment-0.1.0-py3-none-any.whl
| Download URL | sdg_alignment-0.1.0-py3-none-any.whl |
|---|---|
| Size | 58.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c97d04dbdfbcc7fec9f8f04cd9701ce9771e90810247ecb6d826db4f42015c95
|
|
BLAKE2b-256 checksum How to use checksums |
a92043721c1f812e75ec0b8e601eb08c79ee9b093271e97e20c8746ad2ff4480
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.
Transparency logSecurity for sdg-alignment 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for sdg_alignment-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.