Git Product home page Git Product logo

kriobot's People

Contributors

siiptuo avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

dpriskorn

kriobot's Issues

Conjugation improvements

  • Handle umlaut e.g. göra, gör, gjorde, gjort should be categorized into group 2 instead of group 4
  • Add stem to strong verbs e.g. springa, springer, sprang, sprungit would have stem spr-ng
  • Add separate group for truly irregular verbs (e.g. vara) instead of placing them in group 4 with strong verbs

Based on Böja svenska verb by Om svenska.

Query only lexemes modified since the last run

Something like this:

SELECT ?lexeme ?lemma ?dateModified WHERE {
  ?lexeme dct:language wd:Q1860;
    wikibase:lemma ?lemma;
    schema:dateModified ?dateModified.
  hint:Prior hint:rangeSafe true.
  FILTER(?dateModified > "+2023-01-10T00:00:00Z"^^xsd:dateTime)
}

add custom user agent to all scripts

WMF has a policy that makes it easier for them to find malicious code hitting their endpoints. See opencitationsbot for how to set a user agent with WBI.

Wrong compound splitting: förvarning (Swedish)

In https://www.wikidata.org/w/index.php?title=Lexeme%3AL242808&diff=1495165027&oldid=1407681033 kriobot split förvarning into "förvara" and "-ning", which seems wrong to me, since the noun for förvara is "förvaring".

Compare:
https://sv.wiktionary.org/wiki/f%C3%B6rvaring
https://sv.wiktionary.org/wiki/f%C3%B6rvarning

I changed the item in https://www.wikidata.org/w/index.php?title=Lexeme%3AL242808&diff=1791659518&oldid=1511281980, but wanted to give a heads up on this problem case.

Add forms to lexemes that combine multiple lexemes

Find candidates with something like this:

SELECT ?lexemeId ?lemma WHERE {
  ?lexemeId dct:language wd:Q1860;
    wikibase:lemma ?lemma;
    wdt:P5238 ?lexemes.
  FILTER(NOT EXISTS { ?lexemeId ontolex:lexicalForm ?form. })
}

Maybe skip idioms and other multi-word lexemes as these can be difficult to inflect correctly.

Simplify?

I suggest simplifying by checking if len() == 1 and return None in all other cases

if len(data['results']['bindings']) == 0 or len(data['results']['bindings']) > 1:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.