From: Mateusz Konieczny Date: Wed, 26 Jun 2024 08:37:23 +0000 (+0200) Subject: fix some typos X-Git-Tag: deploy~4^2~14 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/e51973f8b1eee034221eed6f91cddf2488020692?hp=--cc fix some typos --- e51973f8b1eee034221eed6f91cddf2488020692 diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index c8337ebc..c6ce2532 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -80,15 +80,15 @@ jobs: flavour: ${{ matrix.flavour }} lua: ${{ matrix.lua }} - - name: Install test prerequsites (behave from apt) + - name: Install test prerequisites (behave from apt) run: sudo apt-get install -y -qq python3-behave if: matrix.flavour == 'ubuntu-20' - - name: Install test prerequsites (behave from pip) + - name: Install test prerequisites (behave from pip) run: pip3 install behave==1.2.6 if: (matrix.flavour == 'oldstuff') || (matrix.flavour == 'ubuntu-22') - - name: Install test prerequsites (from apt for Ununtu 2x) + - name: Install test prerequisites (from apt for Ununtu 2x) run: sudo apt-get install -y -qq python3-pytest python3-pytest-asyncio uvicorn if: matrix.flavour != 'oldstuff' @@ -96,7 +96,7 @@ jobs: run: pip3 install -U pytest-asyncio if: matrix.flavour == 'ubuntu-20' - - name: Install test prerequsites (from pip for Ubuntu 18) + - name: Install test prerequisites (from pip for Ubuntu 18) run: pip3 install pytest pytest-asyncio uvicorn if: matrix.flavour == 'oldstuff' @@ -165,7 +165,7 @@ jobs: with: cmake-args: -DBUILD_MODULE=on - - name: Install test prerequsites + - name: Install test prerequisites run: sudo apt-get install -y -qq python3-behave - name: BDD tests (legacy tokenizer) @@ -212,7 +212,7 @@ jobs: with: flavour: 'ubuntu-22' - - name: Install test prerequsites + - name: Install test prerequisites run: sudo apt-get install -y -qq python3-behave - name: BDD tests (php) diff --git a/docs/api/Lookup.md b/docs/api/Lookup.md index a2ba714e..bed01275 100644 --- a/docs/api/Lookup.md +++ b/docs/api/Lookup.md @@ -93,7 +93,7 @@ as the ["Accept-Language" HTTP header](https://developer.mozilla.org/en-US/docs/ results when using Nominatim in the browser versus in a command-line tool like wget or curl. The command-line tools usually don't send any Accept-Language header, prompting Nominatim - to show results in the local language. Browsers on the contratry always + to show results in the local language. Browsers on the contrary always send the currently chosen browser language. diff --git a/docs/api/Reverse.md b/docs/api/Reverse.md index 216ce6e6..67306fa8 100644 --- a/docs/api/Reverse.md +++ b/docs/api/Reverse.md @@ -115,7 +115,7 @@ as the ["Accept-Language" HTTP header](https://developer.mozilla.org/en-US/docs/ results when using Nominatim in the browser versus in a command-line tool like wget or curl. The command-line tools usually don't send any Accept-Language header, prompting Nominatim - to show results in the local language. Browsers on the contratry always + to show results in the local language. Browsers on the contrary always send the currently chosen browser language. diff --git a/docs/api/Search.md b/docs/api/Search.md index ab3c8444..f1b4b8a0 100644 --- a/docs/api/Search.md +++ b/docs/api/Search.md @@ -152,7 +152,7 @@ as the ["Accept-Language" HTTP header](https://developer.mozilla.org/en-US/docs/ results when using Nominatim in the browser versus in a command-line tool like wget or curl. The command-line tools usually don't send any Accept-Language header, prompting Nominatim - to show results in the local language. Browsers on the contratry always + to show results in the local language. Browsers on the contrary always send the currently chosen browser language. ### Result restriction diff --git a/docs/customize/Importance.md b/docs/customize/Importance.md index f192d265..3ff2d558 100644 --- a/docs/customize/Importance.md +++ b/docs/customize/Importance.md @@ -24,7 +24,7 @@ nominatim.org has preprocessed importance tables for the and for [secondary importance](https://nominatim.org/data/wikimedia-secondary-importance.sql.gz) based on Wikipedia importance of the administrative areas. -The source code for creating these files is avaible in the Github projects +The source code for creating these files is available in the Github projects [osm-search/wikipedia-wikidata](https://github.com/osm-search/wikipedia-wikidata) and [osm-search/secondary-importance](https://github.com/osm-search/secondary-importance). diff --git a/src/nominatim_api/search/db_search_builder.py b/src/nominatim_api/search/db_search_builder.py index 29a853a0..e29f0b93 100644 --- a/src/nominatim_api/search/db_search_builder.py +++ b/src/nominatim_api/search/db_search_builder.py @@ -275,7 +275,7 @@ class SearchBuilder: use_lookup: bool) -> List[dbf.FieldLookup]: """ Create a ranking expression with full name terms and additional address lookup. When 'use_lookup' is true, then - address lookups will use the index, when the occurences are not + address lookups will use the index, when the occurrences are not too many. """ # At this point drop unindexed partials from the address. diff --git a/src/nominatim_db/tools/refresh.py b/src/nominatim_db/tools/refresh.py index 6946a41a..6a40c0a7 100644 --- a/src/nominatim_db/tools/refresh.py +++ b/src/nominatim_db/tools/refresh.py @@ -154,7 +154,7 @@ def import_importance_csv(dsn: str, data_file: Path) -> int: if not data_file.exists(): return 1 - # Only import the first occurance of a wikidata ID. + # Only import the first occurence of a wikidata ID. # This keeps indexes and table small. wd_done = set()