Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexmaryin/initials_inflator
Linrary provides a functions to inflate russian initials to the any cases with gender reccgnize using different rest api
https://github.com/alexmaryin/initials_inflator
Last synced: 21 days ago
JSON representation
Linrary provides a functions to inflate russian initials to the any cases with gender reccgnize using different rest api
- Host: GitHub
- URL: https://github.com/alexmaryin/initials_inflator
- Owner: alexmaryin
- Created: 2020-11-18T05:34:01.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-29T13:08:13.000Z (almost 4 years ago)
- Last Synced: 2024-04-20T17:50:41.345Z (8 months ago)
- Language: Pascal
- Size: 105 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# initials_inflator #freepascal #lazarus
Library provides functions to inflate russian initials to any case with gender recognize using different rest apiInterface of library:
// Returns initials in needed case in array of strings with case as index
function GetInitials(Initials: string): CasesResponse;// Returns words combination in needed case in array of strings with case as index
function GetWordsCase(Words: string): CasesResponse;// Returns initials in needed case in simple string with gender in var-parameter
function GetGenderAndInitials(Initials: string; var Gender: TGender): CaseResponse;
where:
TWordCase = (Nominative, Gentitive, Dative, Accusative, Instrumental, Prepositional);
TGender = (Male, Female, Unrecognized);
CasesResponse = array[TWordCase] of string;Use generics for RestApi service.
Implemented 2/3 services:
1. Pymorphy https://github.com/kmike/pymorphy2 (inflates only separated words without context)
2. Morphos http://morphos.io/site/api#inflect-name (best way imho)
3. Dadata not implemented yet (I think best service but it's not free)