Skip to content

Commit

Permalink
Link to look up unknown words from Multi-word Look-up suggests Logeion
Browse files Browse the repository at this point in the history
  • Loading branch information
DuncanRitchie committed Apr 29, 2024
1 parent f6e9ac3 commit 7c9cf95
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/words/multiHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ export function getHrefForDictionaryLinks(wordsToGetLinksFor) {
const missingWordsAsArray = [...wordsToGetLinksFor]
const dictionaryLinksQuery = new URLSearchParams([
['words', missingWordsAsArray.join(' ')],
// The words that the Multi-word Look-up page passes into this function are words that are *not* already in velut.
// If the `dictionaries` param weren’t specified, the default is velut, which wouldn’t make sense here because
// we know the words are not in velut. So we specify a different dictionary site (Logeion) instead.
['dictionaries', 'logeion'],
])
return `https://www.duncanritchie.co.uk/velut-dictionary-links/?${dictionaryLinksQuery}`
}

0 comments on commit 7c9cf95

Please sign in to comment.