-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.qmd
More file actions
198 lines (148 loc) · 6.61 KB
/
index.qmd
File metadata and controls
198 lines (148 loc) · 6.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
---
editor: source
editor_options:
chunk_output_type: console
execute:
echo: false
---
```{r}
#| include: false
version <- "1.0.3"
library(tidyverse)
library(DT)
readxl::read_xlsx("backup/andic_all_merged.xlsx") |>
filter(!is.na(base)) |>
select(meaning_ru, base, gender, abs.pl, obl.sg, obl.pl, loc, GA, aor_perf, imp, pos, transducer_entry, transducer_lexicon_group) |>
rename(russian = meaning_ru,
zilo = base) |>
mutate(across(everything(), ~ str_replace_all(.x, "[1I]", "ӏ"))) |>
distinct() |>
write_csv("data/data.csv", na = "")
df <- read_csv("data/data.csv", show_col_types = FALSE)
lemmata_form <- case_when(nrow(df) %% 10 == 1 ~ "лемма",
nrow(df) %% 10 %in% 2:4 ~ "леммы",
TRUE ~ "лемм")
# update version everywhere
read_lines("CITATION.cff") |>
str_replace("version: v\\d{1,}\\.\\d{1,}\\.\\d{1,}",
str_glue("version: v{version}")) |>
write_lines("CITATION.cff")
read_lines("README.md") |>
str_replace("\\(v\\d{1,}\\.\\d{1,}\\.\\d{1,}\\)",
str_glue("(v{version})")) |>
write_lines("README.md")
```
::: {.content-visible when-profile="english"}
The dictionary was compiled in 2022--2026 by G. Moroz (Linguistic Convergence Laboratory, HSE University). The online version was prepared by G. Moroz. You can always contact me via [email](mailto:agricolamz@gmail.com) or leave an issue on the [GitHub page](https://github.com/agricolamz/zilo_dictionary/issues/new). Please note that I use the [palochka sign](https://en.wikipedia.org/wiki/Palochka), however it is possible to use latin capital I or digit 1 in the colomn's search. Data are [available for download](https://raw.githubusercontent.com/LingConLab/zilo_dictionary/refs/heads/main/data/data.csv) in the `.csv` format. Dictionary consists of `r nrow(df)` lemmata and phrases.
Please refer to the dictionary as follows:
```{r}
library(RefManageR)
BibOptions(check.entries = FALSE, style = 'text', bib.style = 'authoryear')
article_citation <- BibEntry(bibtype = 'misc',
key='moroz2026',
title=str_glue('Online Dictionary of Zilo Andi (v{version})'),
author='G. Moroz',
year='2026',
publisher='Linguistic Convergence Laboratory, HSE University',
address='Moscow',
url='https://lingconlab.github.io/zilo_dictionary/',
doi='10.5281/zenodo.13952695')
```
::: {.panel-tabset}
### Plain text
```{r, results = 'asis'}
print(article_citation, .opts = list(style = 'text'))
```
### BibTeX
```{r}
print(article_citation, .opts = list(style = 'Bibtex'))
```
:::
[](https://doi.org/10.5281/zenodo.13952695)
::: {.panel-tabset}
### Main version
```{r}
#| warning: false
df |>
arrange(zilo) |>
select(zilo, russian) |>
rename(Zilo = zilo,
Russian = russian) |>
datatable(filter = 'top', escape = FALSE, rownames = FALSE,
options = list(pageLength = 20,
dom = 'top',
initComplete = JS(readLines("code.js"))))
```
### Extended search
```{r}
#| warning: false
df |>
select(-transducer_entry, -transducer_lexicon_group) |>
arrange(zilo) |>
mutate_all(function(i){ifelse(is.na(i), "", i)}) |>
mutate(gender = factor(gender)) |>
rename(Zilo = zilo,
Russian = russian) |>
datatable(filter = 'top', escape = FALSE, rownames = FALSE,
options = list(pageLength = 20,
dom = 'ftop',
initComplete = JS(readLines("code.js"))))
```
:::
:::
::: {.content-visible when-profile="russian"}
Словарь был составлен в 2022--2026 Г. А. Морозом (Международная лаборатория языковой конвергенции, НИУ ВШЭ). Сайт сверстан Г. А. Морозом. По всем вопросам можно написать [по почте](mailto:agricolamz@gmail.com) или оставить замечания на [странице GitHub](https://github.com/agricolamz/zilo_dictionary/issues/new). Обратите внимание, что я использую [палочку](https://ru.wikipedia.org/wiki/Палочка_(кириллица))), но в поиске конкретных колонок можно использовать заглавную английскую I или цифру 1. Данные доступны [к скачиванию](https://raw.githubusercontent.com/LingConLab/zilo_dictionary/refs/heads/main/data/data.csv) в формате `.csv`. В словаре содержится `r nrow(df)` лемм и фраз.
Словарь следует цитировать следующим образом:
```{r}
library(RefManageR)
BibOptions(check.entries = FALSE, style = 'text', bib.style = 'authoryear')
article_citation <- BibEntry(bibtype = 'misc',
key='moroz2026',
title=str_glue('Электронный словарь зиловского андийского (v{version})'),
author='Г. А. Мороз',
year='2026',
publisher='Международная лаборатория языковой конвергенции, НИУ ВШЭ',
address='Москва',
url='https://lingconlab.github.io/zilo_dictionary',
doi='10.5281/zenodo.7803955')
```
::: {.panel-tabset}
### Plain text
```{r, results = 'asis'}
print(article_citation, .opts = list(style = 'text'))
```
### BibTeX
```{r}
print(article_citation, .opts = list(style = 'Bibtex'))
```
:::
[](https://doi.org/10.5281/zenodo.13952695)
::: {.panel-tabset}
### Поиск
```{r}
#| warning: false
df |>
arrange(zilo) |>
select(zilo, russian) |>
datatable(filter = 'top', escape = FALSE, rownames = FALSE,
colnames = c("зиловский", "русский"),
options = list(pageLength = 20,
dom = 'top',
initComplete = JS(readLines("code.js"))))
```
### Расширенный поиск
```{r}
#| warning: false
df |>
select(-transducer_entry, -transducer_lexicon_group) |>
arrange(zilo) |>
mutate_all(function(i){ifelse(is.na(i), "", i)}) |>
mutate(gender = factor(gender)) |>
datatable(filter = 'top', escape = FALSE, rownames = FALSE,
colnames = c("русский", "зиловский", "класс", "мн. ч.", "косв. осн. ед. ч.", "косв. осн. мн. ч.", "местн. п.", "кл. формы", "прош. вр.", "повел.", "часть речи"),
options = list(pageLength = 20,
dom = 'ftop',
initComplete = JS(readLines("code.js"))))
```
:::
:::