Housekeeping...

This commit is contained in:
Pieter Vander Vennet 2022-06-24 03:52:54 +02:00
parent 2700979923
commit 09b230b5be
25 changed files with 563 additions and 299 deletions

View file

@ -104,8 +104,8 @@ options | A JSON-object of type `{ removePrefixes: string[], removePostfixes: st
subarg | doc
-------- | -----
removePrefixes | remove these snippets of text from the start of the passed string to search
removePostfixes | remove these snippets of text from the end of the passed string to search
removePrefixes | remove these snippets of text from the start of the passed string to search. This is either a list OR a hash of languages to a list
removePostfixes | remove these snippets of text from the end of the passed string to search. This is either a list OR a hash of languages to a list
instanceOf | A list of Q-identifier which indicates that the search results _must_ be an entity of this type, e.g. [`Q5`](https://www.wikidata.org/wiki/Q5) for humans
notInstanceof | A list of Q-identifiers which indicates that the search results _must not_ be an entity of this type, e.g. [`Q79007`](https://www.wikidata.org/wiki/Q79007) to filter away all streets from the search results
@ -122,13 +122,16 @@ notInstanceof | A list of Q-identifiers which indicates that the search results
"helperArgs": [
"name",
{
"removePostfixes": [
"removePostfixes": {"en": [
"street",
"boulevard",
"path",
"square",
"plaza",
],
"nl": ["straat","plein","pad","weg",laan"]
},
"#": "Remove streets and parks from the search results:"
"notInstanceOf": ["Q79007","Q22698"]
}