https://github.com/centrefordigitalhumanities/mima
Mind your Manner Adverbials! (MiMA) is a linguistic database housing manner adverbials
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.3%) to scientific vocabulary
Keywords
Repository
Mind your Manner Adverbials! (MiMA) is a linguistic database housing manner adverbials
Basic Info
- Host: GitHub
- Owner: CentreForDigitalHumanities
- License: bsd-3-clause
- Language: TypeScript
- Default Branch: develop
- Homepage: https://mima.hum.uu.nl
- Size: 3.62 MB
Statistics
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 5
- Releases: 0
Topics
Metadata Files
README.md
MiMA
This is the software used by the MiMA database website, which is a product of the Mind your Manner Adverbials! research project run by linguists of Utrecht University (ILS, formerly UiL-OTS). The research project is funded by the Dutch Research Council (NWO).
One of the main aims of the research project is to map the cross-linguistic variation in the (morpho)syntax of manner adverbials. In pursuing this, we are interested in the internal structure (i.e., the internal make-up of complex words and groups of words) of these adverbials, their external structure (i.e., the way in which they distribute in the larger sentence), and the way in which these two variables interact. Part of building towards this goal consists of collecting the data contained in this database, and compiling and making them available in the database.
As one look at the database reveals, there is a lot of variation in the way in which languages form and use manner adverbials. This rich variation is found between unrelated, but also (closely) related languages/language varieties, and has not been studied on a large scale and in detail before. The MiMA project contributes to the study of the (morpho)syntax of manner adverbials by systematic collection and study of data from languages/language varieties that exhibit different degrees of relatedness: the Dutch dialects are very closely related languages/language varieties, the Germanic languages are less closely related, and the non-Germanic languages are even further removed/unrelated. By studying the differences and similarities in the structure of the manner adverbials, we can relate these to the differences and similarities between the languages/language varieties. The sample of languages/language varieties in our database allows us to do this at different levels of fine-grainedness.
Before you start
You need to install the following software:
- PostgreSQL >= 10, client, server and C libraries
- Python >= 3.8, <= 3.10
- virtualenv
- WSGI-compatible webserver (deployment only)
- Visual C++ for Python (Windows only)
- Node.js >= 14.20.0
- Yarn
- WebDriver for at least one browser (only for functional testing)
How it works
This project integrates three isolated subprojects, each inside its own subdirectory with its own code, package dependencies and tests:
backend: the server side web application based on Django and DRF
frontend: the client side web application based on Angular
functional-tests: the functional test suite based on Selenium and pytest
Each subproject is configurable from the outside. Integration is achieved using "magic configuration" which is contained inside the root directory together with this README. In this way, the subprojects can stay truly isolated from each other.
If you are reading this README, you'll likely be working with the integrated project as a whole rather than with one of the subprojects in isolation. In this case, this README should be your primary source of information on how to develop or deploy the project. However, we recommend that you also read the "How it works" section in the README of each subproject.
Development
Quickstart
First time after cloning this project:
console
$ python bootstrap.py
Be sure to supply filepaths to backend/mima/settings_local.py and frontend/src/environments/environment.local.ts for the quick-upload buttons to work.
Running the application in development mode (hit ctrl-C to stop):
console
$ yarn start
This will run the backend and frontend applications, as well as their unittests, and watch all source files for changes. You can visit the frontend on http://localhost:8000/, the browsable backend API on http://localhost:8000/api/ and the backend admin on http://localhost:8000/admin/. On every change, unittests rerun, frontend code rebuilds and open browser tabs refresh automatically (livereload).
Recommended order of development
For each new feature, we suggested that you work through the steps listed below. This could be called a back-to-front or "bottom up" order. Of course, you may have reasons to choose otherwise. For example, if very precise specifications are provided, you could move step 8 to the front for a more test-driven approach.
Steps 1–5 also include updating the unittests. Only functions should be tested, especially critical and nontrivial ones.
- Backend model changes including migrations.
- Backend serializer changes and backend admin changes.
- Backend API endpoint changes.
- Frontend model changes.
- Other frontend unit changes (templates, views, routers, FSMs).
- Frontend integration (globals, event bindings).
- Run functional tests, repair broken functionality and broken tests.
- Add functional tests for the new feature.
- Update technical documentation.
For release branches, we suggest the following checklist.
- Bump the version number in the
package.jsonnext to this README. - Run the functional tests in production mode, fix bugs if necessary.
- Try using the application in production mode, look for problems that may have escaped the tests.
- Add regression tests (unit or functional) that detect problems from step 3.
- Work on the code until new regression tests from step 4 pass.
- Optionally, repeat steps 2–5 with the application running in a real deployment setup (see Deployment).
Commands for common tasks
The package.json next to this README defines several shortcut commands to help streamline development. In total, there are over 30 commands. Most may be regarded as implementation details of other commands, although each command could be used directly. Below, we discuss the commands that are most likely to be useful to you. For full details, consult the package.json.
Install the pinned versions of all package dependencies in all subprojects:
console
$ yarn
Run backend and frontend in production mode:
console
$ yarn start-p
Run the functional test suite:
console
$ yarn test-func [FUNCTIONAL TEST OPTIONS]
The functional test suite by default assumes that you have the application running locally in production mode (i.e., on port 4200). See Configuring the browsers and Configuring the base address in functional-tests/README for options.
Run all tests (mostly useful for continuous integration):
console
$ yarn test [FUNCTIONAL TEST OPTIONS]
Run an arbitrary command from within the root of a subproject:
console
$ yarn back [ARBITRARY BACKEND COMMAND HERE]
$ yarn front [ARBITRARY FRONTEND COMMAND HERE]
$ yarn func [ARBITRARY FUNCTIONAL TESTS COMMAND HERE]
For example,
console
$ yarn back less README.md
is equivalent to
console
$ cd backend
$ less README.md
$ cd ..
Run python manage.py within the backend directory:
console
$ yarn django [SUBCOMMAND] [OPTIONS]
yarn django is a shorthand for yarn back python manage.py. This command is useful for managing database migrations, among other things.
Manage the frontend package dependencies:
console
$ yarn fyarn (add|remove|upgrade|...) (PACKAGE ...) [OPTIONS]
Notes on Python package dependencies
Both the backend and the functional test suite are Python-based and package versions are pinned using pip-tools in both subprojects. For ease of development, you most likely want to use the same virtualenv for both and this is also what the bootstrap.py assumes.
This comes with a small catch: the subprojects each have their own separate requirements.txt. If you run pip-sync in one subproject, the dependencies of the other will be uninstalled. In order to avoid this, you run pip install -r requirements.txt instead. The yarn command does this correctly by default.
Another thing to be aware of, is that pip-compile takes the old contents of your requirements.txt into account when building the new version based on your requirements.in. You can use the following trick to keep the requirements in both projects aligned so the versions of common packages don't conflict:
```console $ yarn back pip-compile
append contents of backend/requirements.txt to functional-tests/requirements.txt
$ yarn func pip-compile ```
Development mode vs production mode
The purpose of development mode is to facilitate live development, as the name implies. The purpose of production mode is to simulate deployment conditions as closely as possible, in order to check whether everything still works under such conditions. A complete overview of the differences is given below.
dimension | Development mode | Production mode
-----------|--------------------|-----------------
command | yarn start | yarn start-p
base address | http://localhost:8000 | http://localhost:4200
backend server (Django) | in charge of everything | serves backend only
frontend server (angular-cli) | serves | watch and build
static files | served directly by Django's staticfiles app | collected by Django, served by gulp-connect
backend DEBUG setting | True | False
backend ALLOWED_HOSTS | - | restricted to localhost
frontend sourcemaps | yes | no
frontend optimization | no | yes
Deployment
Both the backend and frontend applications have a section dedicated to deployment in their own READMEs. You should read these sections entirely before proceeding. All instructions in these sections still apply, though it is good to know that you can use the following shorthand commands from the integrated project root:
```console
collect static files of both backend and frontend, with overridden settings
$ yarn django collectstatic --settings SETTINGS --pythonpath path/to/SETTINGS.py ```
You should build the frontend before collecting all static files.
Owner
- Name: Centre for Digital Humanities
- Login: CentreForDigitalHumanities
- Kind: organization
- Email: cdh@uu.nl
- Location: Netherlands
- Website: https://cdh.uu.nl/
- Repositories: 39
- Profile: https://github.com/CentreForDigitalHumanities
Interdisciplinary centre for research and education in computational and data-driven methods in the humanities.
GitHub Events
Total
- Issues event: 5
- Push event: 4
- Public event: 1
- Pull request event: 2
- Create event: 2
Last Year
- Issues event: 5
- Push event: 4
- Public event: 1
- Pull request event: 2
- Create event: 2
Issues and Pull Requests
Last synced: about 1 year ago
All Time
- Total issues: 43
- Total pull requests: 29
- Average time to close issues: 11 months
- Average time to close pull requests: about 1 month
- Total issue authors: 2
- Total pull request authors: 2
- Average comments per issue: 0.58
- Average comments per pull request: 0.52
- Merged pull requests: 22
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 4
- Pull requests: 10
- Average time to close issues: 25 days
- Average time to close pull requests: about 1 month
- Issue authors: 1
- Pull request authors: 2
- Average comments per issue: 0.0
- Average comments per pull request: 0.0
- Merged pull requests: 8
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- Meesch (26)
- oktaal (19)
Pull Request Authors
- oktaal (24)
- Meesch (5)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- actions/checkout v2 composite
- actions/setup-node v4 composite
- actions/setup-python v2 composite
- postgres * docker
- @angular-devkit/build-angular ^17.1.0 development
- @angular-eslint/builder 17.2.0 development
- @angular-eslint/eslint-plugin 17.2.0 development
- @angular-eslint/eslint-plugin-template 17.2.0 development
- @angular-eslint/schematics 17.2.0 development
- @angular-eslint/template-parser 17.2.0 development
- @angular/cli ^17.1.0 development
- @angular/compiler-cli ^17.1.0 development
- @angular/localize 17.1.0 development
- @types/jasmine ~3.6.0 development
- @types/node ^12.11.1 development
- @typescript-eslint/eslint-plugin ^6.10.0 development
- @typescript-eslint/parser ^6.10.0 development
- eslint ^8.53.0 development
- eslint-plugin-deprecation ^1.3.3 development
- jasmine-core ~3.6.0 development
- jasmine-spec-reporter ~5.0.0 development
- karma ~6.4.1 development
- karma-chrome-launcher ~3.1.0 development
- karma-coverage ~2.0.3 development
- karma-jasmine ~4.0.0 development
- karma-jasmine-html-reporter ~1.5.0 development
- ng-extract-i18n-merge ^2.9.1 development
- protractor ~7.0.0 development
- ts-node ~8.3.0 development
- tslint ~6.1.0 development
- typescript ~5.3.3 development
- @angular/animations ^17.1.0
- @angular/common ^17.1.0
- @angular/compiler ^17.1.0
- @angular/core ^17.1.0
- @angular/forms ^17.1.0
- @angular/platform-browser ^17.1.0
- @angular/platform-browser-dynamic ^17.1.0
- @angular/router ^17.1.0
- @fortawesome/angular-fontawesome ^0.14.1
- @fortawesome/fontawesome-svg-core ^6.2.1
- @fortawesome/free-solid-svg-icons ^6.2.1
- @ngrx/effects ^17.1.0
- @ngrx/store ^17.1.0
- bezier-easing ^2.1.0
- bulma 1.0.1
- luupzig ^17.0.0
- marked ^12.0.2
- primeicons ^6.0.1
- primeng ^17.3.3
- rxjs ^7.8.1
- tslib ^2.0.0
- zone.js ~0.14.3
- 1166 dependencies
- @angular/cli >=15 <16 development
- 214 dependencies
- Django >=4.0.1,<5
- django-livereload-server *
- django-revproxy >=0.10.0
- djangorestframework *
- psycopg2--no-binarypsycopg2 *
- pytest *
- pytest-django *
- pytest-xdist *
- asgiref ==3.5.2
- attrs ==21.4.0
- backports-zoneinfo ==0.2.1
- beautifulsoup4 ==4.11.1
- django ==4.0.6
- django-livereload-server ==0.4
- django-revproxy ==0.10.0
- djangorestframework ==3.13.1
- execnet ==1.9.0
- iniconfig ==1.1.1
- packaging ==21.3
- pluggy ==1.0.0
- psycopg2 ==2.9.3
- py ==1.11.0
- pyparsing ==3.0.9
- pytest ==7.1.2
- pytest-django ==4.5.2
- pytest-forked ==1.4.0
- pytest-xdist ==2.5.0
- pytz ==2022.1
- six ==1.16.0
- soupsieve ==2.3.2.post1
- sqlparse ==0.4.2
- tomli ==2.0.1
- tornado ==6.2
- urllib3 ==1.26.9
- pytest * test
- selenium * test
- async-generator ==1.10 test
- attrs ==21.4.0 test
- certifi ==2022.6.15 test
- cffi ==1.15.1 test
- cryptography ==37.0.4 test
- h11 ==0.13.0 test
- idna ==3.3 test
- iniconfig ==1.1.1 test
- outcome ==1.2.0 test
- packaging ==21.3 test
- pluggy ==1.0.0 test
- py ==1.11.0 test
- pycparser ==2.21 test
- pyopenssl ==22.0.0 test
- pyparsing ==3.0.9 test
- pysocks ==1.7.1 test
- pytest ==7.1.2 test
- selenium ==4.3.0 test
- sniffio ==1.2.0 test
- sortedcontainers ==2.4.0 test
- tomli ==2.0.1 test
- trio ==0.21.0 test
- trio-websocket ==0.9.2 test
- urllib3 ==1.26.9 test
- wsproto ==1.1.0 test