Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifications to make ScotsCorr work in Korp 9 #6

Merged
merged 2 commits into from
Oct 1, 2024

Conversation

janiemi
Copy link

@janiemi janiemi commented Oct 1, 2024

These changes are needed to make ScotsCorr work in Korp 9, along with changes in the backend, frontend plugins and frontend configuration:

  • Copy files from the corpus_info directory in the configuration to the corresponding location in Webpack, needed for the ScotsCorr word list.
  • Add a number of plugin hook points for the plugin cqp_between_tokens, used by ScotsCorr (and LA-murre and ELFA).

webpack.common.js:
- Add a rule to copy corpus_info/*.json in the configuration to
  corpus_info/ (corpus-specific information).
Add plugin hook points to be used in plugin cqp_between_tokens.

app/scripts/model.js:
- BaseProxy.expandCQP: Let plugins filter the expanded CQP.

app/scripts/search_controllers.js
- ExtendedSearch: Let plugins filter the extended search CQP expression
  and act when corpus selection is changed.

app/scripts/util.js
- CorpusListing.constructor, .select: Let plugins act on CorpusListing
  after constructing it and when selecting corpora.
@janiemi
Copy link
Author

janiemi commented Oct 1, 2024

@mmatthiesencsc, @aajarven, @Traubert: Could you please merge this to master, along with #4? Or would it be possible for me to get back the rights to do that, as I (still) have for the backend as well as the config/master and plugins/master branches here?

@mmatthiesencsc mmatthiesencsc merged commit 64d3566 into master Oct 1, 2024
1 of 2 checks passed
@mmatthiesencsc mmatthiesencsc deleted the t-scotscorr-mods branch October 1, 2024 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants