sandborg-petersen-decoder

This morphological decoder provided a lightweight decoder for the Sandborg-Petersen Morphology which is primarily tailored for Koine Greek, especially as it appears in New Testament studies and similar texts.

https://github.com/tonyjurg/sandborg-petersen-decoder

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 7 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.9%) to scientific vocabulary

Keywords

ancient-greek decoding greek-new-testament morphology tags
Last synced: 4 months ago · JSON representation ·

Repository

This morphological decoder provided a lightweight decoder for the Sandborg-Petersen Morphology which is primarily tailored for Koine Greek, especially as it appears in New Testament studies and similar texts.

Basic Info
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 1
Topics
ancient-greek decoding greek-new-testament morphology tags
Created about 1 year ago · Last pushed 7 months ago
Metadata Files
Readme Citation

README.md

Project Status: Active – The project has reached a stable, usable state and is being actively developed. Online Tool DOI SWH License: CC BY 4.0

Sandborg-Petersen Morphology Decoder

This lightweight decoder implements the Sandborg-Petersen morphology schema for Koine Greek — especially New Testament and related texts — in a simple, browser-based tool.

You can try it online at https://tonyjurg.github.io/Sandborg-Petersen-decoder/. The online version allows also allows for prefilling the decoder with a specific tag by appending ?tag=<TAG> (for example, ?tag=N-NSF).

Decoder formats

Two functionaly equivalent coding implementations are stored on this repository:

Definitional document

A descriptive document with parsing information is available via github.com/biblicalhumanities.

Integrating in HTML page

Using a JavScript generated button

Because the decoder requires JavaScript to function, it is reasonable to embed a link to it directly in any HTML page using a method depending on JavaScript as well. This approach also lets you open it in a new, resizable window of a specified size.

The first step is to add a script anywhere inside your <HEAD> section, or at the top of your <BODY> section:

``` html

``` In the <BODY> section include the following:

``` html

```

This will put a button on your page similair to the image below:

If JavaScript is enabled, clicking this button will launch the decoder in a new 800×600 px window without toolbars or menus.

Adding a direct link

If you prefer a simple hyperlink that opens in a full browser tab, just use:

html <A HREF="https://tonyjurg.github.io/Sandborg-Petersen-decoder/" TARGET="_blank">Open Morph decoder</A>

Open decoder for a specific tags

You can also open the decoder pre-filled for a specific tag by appending a tag query parameter to its URL. In our HTML/JavaScript implementation, a small script reads the URL’s tag parameter and uses it to initialize the decoder, which is especially handy if you’ve already run your analysis in Python.

```Python import pandas as pd from IPython.display import HTML

base_url = "https://tonyjurg.github.io/Sandborg-Petersen-decoder/?tag="

Simple example data

results = [ ("Βίβλος", "N-NSF"), ("λόγος", "N-NSM"), ]

Build dataframe

df = pd.DataFrame(results, columns=["Word", "Tag"])

Embed clickable HTML links in the 'Tag' column

df["Tag"] = df["Tag"].apply(lambda tag: f'{tag}')

Display as an HTML table with clickable links

HTML(df.to_html(escape=False, index=False)) ```

This will produce the following table:

Word Tag
Βίβλος N-NSF
λόγος N-NSM

Note the use of target="decoder" would normally reuse a single named window. However, in a sanitized environment like Jupyter Notebook, each click opens a new window because Jupyter’s security model isolates browsing contexts. In contrast, when you save the same HTML locally (or serve it as a regular web page), clicks targeting the same window name correctly reuse that single window.

See the following small Jupyter Notebook to see the code in action.

Tag validation agains the MACULA GNT dataset

Acknowledgements

Owner

  • Name: Tony Jurg
  • Login: tonyjurg
  • Kind: user

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Jurg"
  given-names: "Tony"
  orcid: "https://orcid.org/0000-0002-0343-1346"
title: "Sandborg-Petersen-decoder - Lightweight decoder for the Sandborg-Petersen Morphology"
version: v1.1
doi: 10.5281/zenodo.14551056
date-released: 2025-04-27
url: "https://github.com/tonyjurg/Sandborg-Petersen-decoder"

GitHub Events

Total
  • Create event: 2
  • Issues event: 4
  • Release event: 1
  • Issue comment event: 3
  • Public event: 1
  • Push event: 26
Last Year
  • Create event: 2
  • Issues event: 4
  • Release event: 1
  • Issue comment event: 3
  • Public event: 1
  • Push event: 26