Introduction
This Anki add-on allows you to fetch example sentences in different languages from various sources such as Tatoeba.
It can be used to look up and browse sentences given a word, add sentences to a given field for a group of notes, or fetch and display random sentences when you review cards.
Download
You can download the add-on using the AnkiWeb code 385420176 or from the GitHub releases page.
Supported languages
More than 400+ languages are supported. Most of them only have Tatoeba as a supported provider at the moment, but a few languages such as English, Japanese and Turkish have additional providers. To contribute additional providers or suggest some resources, please submit an issue.
Go to Tools > InContext > Languages for a complete list of supported languages and providers.
Usage
Go to the relevant page for usage:
Importing Tatoeba databases
Using the Tatoeba provider requires downloading the sentences first. Use Tools > InContext > Download Tatoeba sentences to download sentences for your target language.
Browsing sentences
You can search for sentences using the screen under Tools > InContext > Browse sentences.

You can also assign shortcuts to open the Browse screen for the selected word in the review screen from the settings.
Clicking on the clipboard icon next to the magnifying glass icon activates the Clipboard Monitor. This monitors your clipboard and automatically looks up copied text while the screen is open. Note that text copied in the Browse screen itself doesn’t trigger automatic lookups.
Filling in sentences in bulk
You can add sentences to a chosen field in multiple selected notes using the Notes > InContext: Add sentences menu item in the Anki Browser.

Sentences are chosen at random from selected providers.
Displaying random sentences while reviewing
The add-on also supports displaying random example sentences for vocabulary each time a card is viewed.
You just have to put a filter like this in your card template:
{{incontext:Front}}
Here, the add-on will show a random English example sentence containing the word in the Front field.
You can specify the language using the lang option:
{{incontext lang=eng:Front}}
This fetches sentences from all supported providers for the specified language.
You can show sentences from only a certain provider using the provider option:
{{incontext lang=eng provider=dictionary.com:Front}}
Go to Tools > InContext > Languages for a complete list of supported languages and providers with their template filter codes.
If a provider is given but no language, the first supported language of the provider will be assumed. If both language and provider are not given, the default is English with all providers.
Sentences display like this and you have the option to refresh the sentence by clicking on the cycle icon:

Settings
You can access the settings screen under Tools > InContext > Settings.

You can customize options such as the default language/providers, assign shortcuts for looking up sentences in the Browse screen, and configure provider-specific settings (if any).
Support
Support & feature requests
Please post any questions, bug reports, or feature requests in the support page or the issue tracker.
If you want priority support for your feature/help request, I’m available for hire. Get in touch via email or the Upwork link below.
Support me
Consider supporting me if you like my work:
I’m also available for freelance add-on development: