Skip to content

Commit

Permalink
Re-licensing under AGPL
Browse files Browse the repository at this point in the history
  • Loading branch information
Arusekk committed May 10, 2018
1 parent 0fe1914 commit c9f0271
Show file tree
Hide file tree
Showing 9 changed files with 777 additions and 677 deletions.
674 changes: 0 additions & 674 deletions LICENSE

This file was deleted.

660 changes: 660 additions & 0 deletions LICENSE.md

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# declinator
# Declinator

[![Build Status](https://travis-ci.org/Arusekk/declinator.svg?branch=master)](https://travis-ci.org/Arusekk/declinator)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/890c3619a80d44c8bc3763931fe26d4f)](https://app.codacy.com/app/Arusekk/declinator?utm_source=github.com&utm_medium=referral&utm_content=Arusekk/declinator&utm_campaign=badger)
[![GitHub Release Date](https://img.shields.io/github/release-date/Arusekk/declinator.svg)](https://github.com/Arusekk/declinator/releases)
[![License](https://img.shields.io/github/license/Arusekk/declinator.svg)](https://www.gnu.org/licenses/agpl-3.0.html)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com)

Automatised declension of names

# Supported languages
* polish
* in spe: other slavic, lithuanian and hungarian
* ... in spe: other slavic, lithuanian and hungarian
18 changes: 18 additions & 0 deletions declinator.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/* declinator.c
* Copyright (C) 2018 Arusekk
* This file is part of Declinator.
*
* Declinator is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Declinator is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Declinator. If not, see <http://www.gnu.org/licenses/>.
*/

#include "duplidict.h"
#include "declinator.h"
#include <assert.h>
Expand Down
18 changes: 18 additions & 0 deletions declinator.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/* declinator.h
* Copyright (C) 2018 Arusekk
* This file is part of Declinator.
*
* Declinator is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Declinator is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Declinator. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef DECLINATOR_H
#define DECLINATOR_H

Expand Down
23 changes: 22 additions & 1 deletion declinator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
#!/usr/bin/env python3
'''
Automatised declension of names.
Use declmod to compute all possible cases and decl to get just
a single case.
'''
# declinator.py
# Copyright (C) 2018 Arusekk
# This file is part of Declinator.
#
# Declinator is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Declinator is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Declinator. If not, see <http://www.gnu.org/licenses/>.

import duplidict

Expand Down Expand Up @@ -142,7 +163,7 @@ def main():
import argparse
par = argparse.ArgumentParser()
par.add_argument("-g", "--gender", help="the word's gender", choices=['f','m','n','auto'], default='auto')
par.add_argument("word", help="the word to roll", default='Julia Kwiatkowska')
par.add_argument("word", help="the word to roll", default='Mark Twain')
arg = par.parse_args()
m = declmod(arg.word, arg.gender)
print(settings['illustration']['teststring'].format(**m))
Expand Down
18 changes: 18 additions & 0 deletions duplidict.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/* duplidict.c
* Copyright (C) 2018 Arusekk
* This file is part of Declinator.
*
* Declinator is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Declinator is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Declinator. If not, see <http://www.gnu.org/licenses/>.
*/

#include "duplidict.h"
#include <stdio.h>
#include <string.h>
Expand Down
18 changes: 18 additions & 0 deletions duplidict.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/* duplidict.h
* Copyright (C) 2018 Arusekk
* This file is part of Declinator.
*
* Declinator is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Declinator is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Declinator. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef DUPLIDICT_H
#define DUPLIDICT_H

Expand Down
18 changes: 18 additions & 0 deletions main.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/* main.c
* Copyright (C) 2018 Arusekk
* This file is part of Declinator.
*
* Declinator is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Declinator is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Declinator. If not, see <http://www.gnu.org/licenses/>.
*/

#include <stdio.h>
#include <string.h>
#include "declinator.h"
Expand Down

0 comments on commit c9f0271

Please sign in to comment.