With Mink, we are putting Språkbanken's research infrastructure into the hands of the researchers. You can use Mink to apply our language technology methods on texts that you have collected yourself. The resulting data can be downloaded or made available through our research tools.
Use Mink – Language data – Tools
This repo makes up the frontend at spraakbanken.gu.se/mink. It is a Vue 3 app using Vite.
- Single-file components with
<script setup>
- Composables to group state+logic for distinct features
- Utility-first styling with Tailwind CSS
- Visualization of API calls:
- Wrap async calls in
spin
:spin(loadCorpora(), "corpora");
- For markup that might change after the call, wrap it in
<PendingContent>
to apply animation:<PendingContent on="corpora"> {{ corpora.length }} </PendingContent>
- Wrap async calls in
VSCode with the plugins ESLint, Vue and Prettier.
VSCode settings:
{
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
},
"editor.formatOnSave": true,
"[javascript][typescript][vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json][jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
For SB-Auth to allow authentication requests, the dev server must use a hostname matching *.spraakbanken.gu.se
, and HTTPS must be enabled. See the server
section in vite.config.ts. If needed, create certificates with mkcert and refer to them in .env.local
:
DEV_HTTPS_KEY=./local/spraakbanken.gu.se+1-key.pem
DEV_HTTPS_CERT=./local/spraakbanken.gu.se+1.pem
See: