-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from monarch-initiative/czeck-it-out
Add generation of prompts in czech
- Loading branch information
Showing
13 changed files
with
1,156 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/main/java/org/monarchinitiative/phenopacket2prompt/output/impl/czech/Adjective.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package org.monarchinitiative.phenopacket2prompt.output.impl.czech; | ||
|
||
record Adjective(String nominativMale, String nominativFemale, String nominativNeutrum, String genitivMale, String genitivFemale, String genitivNeutrum) { | ||
|
||
String nominativ(Genus genus) { | ||
return switch (genus) { | ||
case HE -> nominativMale; | ||
case SHE -> nominativFemale; | ||
case IT -> nominativNeutrum; | ||
}; | ||
} | ||
|
||
String genitiv(Genus genus) { | ||
return switch (genus) { | ||
case HE -> genitivMale; | ||
case SHE -> genitivFemale; | ||
case IT -> genitivNeutrum; | ||
}; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
src/main/java/org/monarchinitiative/phenopacket2prompt/output/impl/czech/Adjectives.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.monarchinitiative.phenopacket2prompt.output.impl.czech; | ||
|
||
class Adjectives { | ||
|
||
static Adjective MALE = new Adjective("mužský", "mužská", "mužské", "mužského", "mužskej", "mužského"); | ||
static Adjective FEMALE = new Adjective("ženský", "ženská", "ženské", "ženského", "ženskej", "ženského"); | ||
static Adjective UNSPECIFIED = new Adjective("neuvedený", "neuvedená", "neuvedené", "neuvedeného", "neuvedenej", "neuvedeného"); | ||
|
||
private Adjectives() { | ||
} | ||
} |
Oops, something went wrong.