{"id":34133525,"url":"https://github.com/united-drivers/go-normadresse","last_synced_at":"2026-03-09T22:02:52.314Z","repository":{"id":57593391,"uuid":"119515678","full_name":"united-drivers/go-normadresse","owner":"united-drivers","description":":fr: French Postal Addresses Normalizer (Golang port of etalab/normadresse)","archived":false,"fork":false,"pushed_at":"2018-02-03T08:51:06.000Z","size":50,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-12-17T12:15:28.210Z","etag":null,"topics":["etalab","golang-port","normalizer","postal","shorter"],"latest_commit_sha":null,"homepage":"https://www.wulo.fr/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/united-drivers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-30T09:46:05.000Z","updated_at":"2024-10-12T15:48:32.000Z","dependencies_parsed_at":"2022-09-06T12:20:16.988Z","dependency_job_id":null,"html_url":"https://github.com/united-drivers/go-normadresse","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/united-drivers/go-normadresse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/united-drivers%2Fgo-normadresse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/united-drivers%2Fgo-normadresse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/united-drivers%2Fgo-normadresse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/united-drivers%2Fgo-normadresse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/united-drivers","download_url":"https://codeload.github.com/united-drivers/go-normadresse/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/united-drivers%2Fgo-normadresse/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30314377,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T20:05:46.299Z","status":"ssl_error","status_checked_at":"2026-03-09T19:57:04.425Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["etalab","golang-port","normalizer","postal","shorter"],"created_at":"2025-12-15T01:09:37.895Z","updated_at":"2026-03-09T22:02:52.302Z","avatar_url":"https://github.com/united-drivers.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-normadresse\n\n[![CircleCI](https://circleci.com/gh/united-drivers/go-normadresse.svg?style=svg)](https://circleci.com/gh/united-drivers/go-normadresse)\n[![GoDoc](https://godoc.org/github.com/united-drivers/go-normadresse?status.svg)](https://godoc.org/github.com/united-drivers/go-normadresse)\n[![Go Report Card](https://goreportcard.com/badge/github.com/united-drivers/go-normadresse)](https://goreportcard.com/report/github.com/united-drivers/go-normadresse)\n[![License](https://img.shields.io/github/license/united-drivers/go-normadresse.svg)](https://github.com/united-drivers/go-normadresse/blob/master/LICENSE)\n[![GitHub release](https://img.shields.io/github/release/united-drivers/go-normadresse.svg)](https://github.com/united-drivers/go-normadresse/releases)\n\n:fr: French Postal Addresses Normalizer (Golang port of [etalab/normadresse](https://github.com/etalab/normadresse)), following the `AFNOR NF Z10-011` specifications.\n\n## Usage\n\nInstall with `go get github.com/united-drivers/go-normadresse`\n\n```go\nimport \"github.com/united-drivers/go-normadresse\"\n\nfmt.Println(strings.ToUpper(normadresse.Normalize(\"BOULEVARD DU MARECHAL JEAN MARIE DE LATTRE DE TASSIGNY\")))\n// Output: BD MAL J M DE LATTRE DE TASSIGNY\n```\n\nMore usage on [GoDoc](https://godoc.org/github.com/united-drivers/go-normadresse), or in the [test file](https://github.com/united-drivers/go-normadresse/blob/master/normadresse_test.go).\n\n## Under the hood\n\nThis library applies rules (sorted with a priority), from the [normadresse.csv](https://github.com/etalab/normadresse/blob/master/normadresse.csv) file, and returns the result as soon as the modified string fits below a max length\n\nExample:\n\n![normadresse example](https://raw.githubusercontent.com/united-drivers/go-normadresse/master/.assets/example.svg?sanitize=true)\n\n### Disclaimer\n\nThe original version written in Python uses [more efficient rule priorities](https://github.com/etalab/normadresse/blob/master/normadresse.py) (than [ours](https://github.com/united-drivers/go-normadresse/blob/master/normadresse.go)), which often results in better outputs\n\nExample:\n* Input: `SQUARE DES SOEURS DE SAINT VINCENT DE PAUL`\n* Python: `SQ SOEURS DE ST VINCENT DE PAUL` (easy to read)\n* Golang: `SQ DES SOEURS DE SAINT V DE P` (correct, but harder to read)\n\nBut it gives the exactly same result for others:\n* `BOULEVARD DU MARECHAL JEAN MARIE DE LATTRE DE TASSIGNY` -\u003e `BD MAL J M DE LATTRE DE TASSIGNY`\n* `RUE DES FRERES MARC ET JEAN MARIE GAMON` -\u003e `RUE DES FRERES M ET J M GAMON`\n* `AVENUE GEORGES ET CLAUDE CAUSTIER` -\u003e `AV GEORGES ET CLAUDE CAUSTIER`\n* `AVENUE DE LA DIVISION DU GENERAL LECLERC` -\u003e `AV DE LA DIVISION DU GAL LECLERC`\n* `RUE EMMANUEL D ASTIER DE LA VIGERIE` -\u003e `RUE E D ASTIER DE LA VIGERIE`\n* ...\n\n## License\n\n[Apache 2.0](https://github.com/united-drivers/go-normadresse/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funited-drivers%2Fgo-normadresse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funited-drivers%2Fgo-normadresse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funited-drivers%2Fgo-normadresse/lists"}