Skip to content

Commit

Permalink
Addressing #1203
Browse files Browse the repository at this point in the history
  • Loading branch information
fbanados committed Dec 17, 2024
1 parent edc0b65 commit 8a5de47
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
6 changes: 6 additions & 0 deletions src/crkeng/app/templates/morphodict/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ <h3 class="prose__heading"> Spoken Cree — {% orth 'nêhiyaw-pîkiskwêwina' %}
based on recordings of
<a href="https://speech-db.altlab.app/synth/speakers/">Dolores Greyeyes Sand</a>,
a Cree speaker from Maskêko-sâkahikanihk, Saskatchewan.

<h3 class="prose__heading"> English semantic classifications</h3>
<p>The computational semantic classifications for English is based on the work on <a href="https://wordnet.princeton.edu/">WordNet</a> developed at Princeton University, and
described in George A. Miller (1995). <a href="https://doi.org/10.1145/219717.219748">WordNet: A Lexical Database for English</a>. Communications of the ACM Vol. 38, No. 11: 39-41,
and in Christiane Fellbaum (1998, ed.) <a href="https://doi.org/10.7551/mitpress/7287.001.0001">WordNet: An Electronic Lexical Database</a>. Cambridge, MA: MIT Press.</p>.
<p>Use of WordNet is subject to the <a href="https://wordnet.princeton.edu/license-and-commercial-use">WordNet License</a></p>
</section>

<section id="credits" class="prose box box--spaced">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
<span class="source-title">Colin Charles Cree Dictionary</span>, by Charles, C., Goulet, K., and McKenzie, M. Lac La Ronge Indian Band, 2021.
{% elif source == "F&R" %}
<span class="source-title">Blackfoot Dictionary of Stems, Roots, and Affixes (3rd Edition)</span>, by Donald Frantz and Norma Jean Russell. University of Toronto Press, 2017.
{% elif source == "WN" %}
<span class="source-title">WordNet: A Lexical Database for English</span>, by George A. Miller, 1995, and <span class="source-title">WordNet: An Electronic Lexical Database</span>, by Christiane Fellbaum, editor, 2001.
{% else %}
UNKNOWN SOURCE ID: {{ source }}. If you're reading this, please
contact us using the link in the footer, near the bottom of the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ <h3>Messages from search run</h3>
<a name="result-synset-{{result.wn_entry.nltk_name}}"></a>
<section class="prose box box--spaced">
<h2 class="prose__section-title">{{result.wn_entry.numbering}}. {{result.wn_entry.original_str}} ({% relabel_one result.wn_entry.paren_pos %})</h2>
<p>
{{result.wn_entry.definition}}
</p>
<div class="meanings__meaning" data-cy="lemma-meaning">
{{result.wn_entry.definition}}
{% include "morphodict/components/citations.html" with dictionary_sources=result.wn_entry.sources %}
</div>
{% if result.wn_entry.synonyms|length > 1 %}
<p><strong>{% relabel_one 'Synonyms' %}</strong>:
<em>{{result.wn_entry.synonyms|join:", "}}</em>.</p>
Expand Down
3 changes: 3 additions & 0 deletions src/morphodict/search/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,9 @@ def ranking(self) -> int:

def nltk_name(self) -> str:
return self.synset.name()

def sources(self) -> list[str]:
return ["WN"]


def produce_entries(origin: str, entries: Iterable[Synset]) -> list[WordnetEntry]:
Expand Down

0 comments on commit 8a5de47

Please sign in to comment.