Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

  • 35eec47
  • /
  • lemma
  • /
  • index.html.twig
Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
content badge
swh:1:cnt:c97c23fc8430457100b954f2e8f68d1fcd00b78a
directory badge
swh:1:dir:b1ceccf2f6ddab983a7a5ea474d9052529cc83b4

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
index.html.twig
{% extends "base.html.twig" %}

{% block title %}
  {{ parent() }}
  {{"lst_words"|trans}}
{% endblock %}


{% block body %}

<h1 class="display-1 mb-4">
    {{"lst_words"|trans}}
 </h1>

<div class="row">
  <div class="col-6">
    <span class="btn btn-secondary btn-sort" data-order="asc" data-metrique="alpha"><i class="fas fa-sort-alpha-down"></i></span>
    <span class="btn btn-secondary btn-sort" data-order="asc" data-metrique="cabym">{{"frequency"|trans}} <i class="fas fa-sort"></i></span>
    <span class="btn btn-secondary btn-sort" data-order="asc" data-metrique="ratio">{{"specificity"|trans}} <i class="fas fa-sort"></i></span>
  </div>
  <div class="col">
    {% include "searchFilter.html.twig" %}
  </div>
</div>

    <div class="colonnes" id="lemmas">
    {% for lemma in lemmas %}
        {% set ratio =  (lemma.lexicalEntries[0].metriques) ? lemma.lexicalEntries[0].metriques.ratio : 0 %}
        {% set cabym =  (lemma.lexicalEntries[0].metriques) ? lemma.lexicalEntries[0].metriques.cabym : 0 %}
        <div id="{{lemma.id}}" class="entry listelemma" data-cabym="{{cabym}}" data-ratio="{{ratio}}" data-alpha="{{lemma.value|normalize}}">
          {% if lemma.lexicalEntries|length > 1 %}
              <a class="valuelemma" href="#">
                {{lemma.value}}
              </a>

              <a tabindex="0" title="Acceptions" role="button" class="btn btn-sm btn-outline-secondary" data-trigger="focus" data-toggle="popover" data-html="true" data-placement="top" data-content="<ul class='list-group list-group-flush'>
                {% for entry in lemma.lexicalEntries %}
                  <li class='list-group-item'>
                    {% set descriptionEntry = entry.meaning %}
                    {% if entry.cat.value == "V" %}
                      {% set descriptionEntry = descriptionEntry ~ " <br> <span class='text-muted'>" ~ entry.verbConstruction ~ "</span>" %}
                    {% endif %}
                    <a href='{{ path("lexicalentry_display", {'id': entry.id}) }}'>
                      {{lemma.value}} ({{entry.cat.value}})
                    </a> {{descriptionEntry}}
                  </li>
                {% endfor %}
              </ul>">?</a>
          {% else %}
            <a class="valuelemma" href="{{ path("lexicalentry_display", {'id': lemma.lexicalEntries[0].id}) }}">
              {{lemma.value}}
            </a>
          {% endif %}
          <span class="display-metrique text-muted"></span>
        </div>
    {% endfor %}
    </div>

{% endblock %}
{% block javascripts %}
  {{ parent() }}
  <script src="{{asset("build/js/filterEntryTab.js")}}"></script>
  <script src="{{asset("build/js/sortLemmas.js")}}"></script>
{% endblock %}

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API