diff --git a/src/crkeng/app/templates/morphodict/about.html b/src/crkeng/app/templates/morphodict/about.html index 030232af7..a6fe3c92b 100644 --- a/src/crkeng/app/templates/morphodict/about.html +++ b/src/crkeng/app/templates/morphodict/about.html @@ -51,6 +51,12 @@

Spoken Cree — {% orth 'nêhiyaw-pîkiskwêwina' %} based on recordings of Dolores Greyeyes Sand, a Cree speaker from Maskêko-sâkahikanihk, Saskatchewan. + +

English semantic classifications

+

The computational semantic classifications for English is based on the work on WordNet developed at Princeton University, and + described in George A. Miller (1995). WordNet: A Lexical Database for English. Communications of the ACM Vol. 38, No. 11: 39-41, + and in Christiane Fellbaum (1998, ed.) WordNet: An Electronic Lexical Database. Cambridge, MA: MIT Press.

. +

Use of WordNet is subject to the WordNet License

diff --git a/src/morphodict/frontend/templates/morphodict/components/citations.html b/src/morphodict/frontend/templates/morphodict/components/citations.html index d2c8afb51..4361a56d9 100644 --- a/src/morphodict/frontend/templates/morphodict/components/citations.html +++ b/src/morphodict/frontend/templates/morphodict/components/citations.html @@ -54,6 +54,8 @@ Colin Charles Cree Dictionary, by Charles, C., Goulet, K., and McKenzie, M. Lac La Ronge Indian Band, 2021. {% elif source == "F&R" %} Blackfoot Dictionary of Stems, Roots, and Affixes (3rd Edition), by Donald Frantz and Norma Jean Russell. University of Toronto Press, 2017. + {% elif source == "WN" %} + WordNet: A Lexical Database for English, by George A. Miller, 1995, and WordNet: An Electronic Lexical Database, 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 diff --git a/src/morphodict/frontend/templates/morphodict/wordnet-results.html b/src/morphodict/frontend/templates/morphodict/wordnet-results.html index f86440bee..8534059a4 100644 --- a/src/morphodict/frontend/templates/morphodict/wordnet-results.html +++ b/src/morphodict/frontend/templates/morphodict/wordnet-results.html @@ -16,9 +16,10 @@

Messages from search run

{{result.wn_entry.numbering}}. {{result.wn_entry.original_str}} ({% relabel_one result.wn_entry.paren_pos %})

-

- {{result.wn_entry.definition}} -

+
+ {{result.wn_entry.definition}} + {% include "morphodict/components/citations.html" with dictionary_sources=result.wn_entry.sources %} +
{% if result.wn_entry.synonyms|length > 1 %}

{% relabel_one 'Synonyms' %}: {{result.wn_entry.synonyms|join:", "}}.

diff --git a/src/morphodict/search/types.py b/src/morphodict/search/types.py index 00b6a8639..ea185852e 100644 --- a/src/morphodict/search/types.py +++ b/src/morphodict/search/types.py @@ -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]: