Marc Kupietz | 9510451 | 2019-12-05 10:13:05 +0100 | [diff] [blame] | 1 | # Dictionary template generated Wed, 04 Dec 2019 13:37:00 GMT |
| 2 | # Based on Mojolicious::Plugin::Number::Commify |
| 3 | my $THOUSAND_SEP_RE = qr/( |
| 4 | ^[-+]? # beginning of number. |
| 5 | \d+? # first digits before first comma |
| 6 | (?= # followed by, (but not included in the match) : |
| 7 | (?>(?:\d{3})+) # some positive multiple of three digits. |
| 8 | (?!\d) # an *exact* multiple, not x * 3 + 1 or whatever. |
| 9 | )| # or: |
| 10 | \G\d{3} # after the last group, get three digits |
| 11 | (?=\d) # but they have to have more digits after them. |
| 12 | )/x; |
| 13 | |
| 14 | { |
| 15 | _ => sub { $_->locale }, |
| 16 | de => { |
| 17 | numf => sub { |
| 18 | shift; |
| 19 | my %val = @_; |
| 20 | my $num = $val{number} or return 0; |
| 21 | $num =~ s/$THOUSAND_SEP_RE/$1\./g; |
| 22 | return $num; |
| 23 | }, |
| 24 | Cancel => 'Abbrechen', |
| 25 | Apply => 'Anwenden', |
| 26 | Options => 'Optionen', |
| 27 | SEARCH => 'SUCHE', |
| 28 | words_to_be_searched => 'Zu suchende Wortform(en)', |
| 29 | search_description => 'Wenn sie mehrere Wortformen kontrastieren wollen, trennen Sie diese mit Leerzeichen, um um den Mittelpunkt der Alternativen herum nach ähnlichen Wörtern zu suchen und mit "|", um die Nachbarn zu allen angegebenen Wortformen zur erhalten.', |
| 30 | paradigmatic_tsne => 'Paradigmatisch (t-SNE)', |
| 31 | paradigmatic_som => 'Paradigmatisch (SOM)', |
| 32 | syntagmatic => 'Syntagmatisch', |
| 33 | collocate_w2v => "Kollokat (W2V)", |
| 34 | collocate_ca => "Kollokat (KA)", |
Marc Kupietz | d6dfdf0 | 2019-12-06 09:53:34 +0100 | [diff] [blame] | 35 | af_window => "AF-Fenster", |
| 36 | info => <<INFOENDD, |
| 37 | <p> |
| 38 | DeReKoVecs ist das neue gläserne Labor der des Programmbereichs Korpuslinguistik am IDS zur Untersuchung von Maßen und Visualisierungen, die der Erforschung paradigmatischer und syntagmatischer Beziehungen dienen. |
| 39 | </p> |
| 40 | |
| 41 | INFOENDD |
| 42 | about => "Über DeReKoVecs", |
| 43 | training_parameters => "Training-Parameter", |
| 44 | references => "Literatur", |
| 45 | abouttext => "de/about", |
Marc Kupietz | ce6490b | 2019-12-06 11:05:40 +0100 | [diff] [blame^] | 46 | footer => "de/footer", |
| 47 | notfounddialog => "#not-found-dialog_de" |
Marc Kupietz | 9510451 | 2019-12-05 10:13:05 +0100 | [diff] [blame] | 48 | }, |
| 49 | -en => { |
| 50 | numf => sub { |
| 51 | shift; |
| 52 | my %val = @_; |
| 53 | my $num = $val{number} or return 0; |
| 54 | $num =~ s/$THOUSAND_SEP_RE/$1\,/g; |
| 55 | return $num; |
| 56 | }, |
| 57 | Cancel => 'Cancel', |
| 58 | Apply => 'Apply', |
| 59 | Options => 'Options', |
| 60 | SEARCH => 'SEARCH', |
| 61 | words_to_be_searched => 'Word(s) to be searched', |
| 62 | search_description => 'When looking for multiple words use spaces as separators to search around the average vector and | as separator to get the neighbours for each word.', |
| 63 | paradigmatic_tsne => 'Paradigmatic (t-SNE)', |
| 64 | paradigmatic_som => 'Paradigmatic (SOM)', |
| 65 | syntagmatic => 'Syntagmatic', |
| 66 | collocate_w2v => "Collocate (W2V)", |
| 67 | collocate_ca => "Collocate (CA)", |
Marc Kupietz | d6dfdf0 | 2019-12-06 09:53:34 +0100 | [diff] [blame] | 68 | af_window => "AF window", |
| 69 | info => <<INFOEND, |
| 70 | <p> |
| 71 | DeReKoVecs is the new open lab of the IDS Corpus Linguistics Group for investigating measures and visualizations that serve to explore paradigmatic and syntagmatic relations. |
| 72 | </p> |
| 73 | INFOEND |
| 74 | about => "About DeReKoVecs", |
| 75 | training_parameters => "Training Parameters", |
| 76 | references => "Literature", |
| 77 | abouttext => "en/about", |
Marc Kupietz | ce6490b | 2019-12-06 11:05:40 +0100 | [diff] [blame^] | 78 | footer => "en/footer", |
| 79 | notfounddialog => "#not-found-dialog_en" |
| 80 | |
Marc Kupietz | 9510451 | 2019-12-05 10:13:05 +0100 | [diff] [blame] | 81 | } |
| 82 | }; |