Skip to content

Commit

Permalink
fix some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
matkoniecz authored and lonvia committed Jul 1, 2024
1 parent c314a30 commit e51973f
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,23 +80,23 @@ 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'

- name: Install newer pytest-asyncio
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'

Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion docs/api/Lookup.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.


Expand Down
2 changes: 1 addition & 1 deletion docs/api/Reverse.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.


Expand Down
2 changes: 1 addition & 1 deletion docs/api/Search.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/customize/Importance.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion src/nominatim_api/search/db_search_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def get_full_name_ranking(self, name_fulls: List[Token], addr_partials: List[Tok
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.
Expand Down
2 changes: 1 addition & 1 deletion src/nominatim_db/tools/refresh.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit e51973f

Please sign in to comment.