Skip to content

Commit

Permalink
Added missing word types for adjectives. Added test for processing la…
Browse files Browse the repository at this point in the history
…rge text from a file
  • Loading branch information
Marley-Mulvin-Broome committed Aug 30, 2023
1 parent c0beab3 commit 0fa6c48
Show file tree
Hide file tree
Showing 4 changed files with 538 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "JPFreq"
version = "0.2.1"
version = "0.2.2"
description = "A Python module which allows for the easy frequency analysis of Japanese text"
readme = "README.md"
requires-python = ">=3.10"
Expand Down
6 changes: 6 additions & 0 deletions src/jpfreq/word.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class WordType(Enum):

# NOUNS
NOUN: str = "名詞"
NOUN_LIKE: str = "名詞的"
COMMON_NOUN: str = "普通名詞"
PRONOUN: str = "代名詞"
PROPER_NOUN: str = "固有名詞"
Expand Down Expand Up @@ -47,7 +48,11 @@ class WordType(Enum):

# ADJECTIVES
NA_ADJECTIVE: str = "形状詞" # Adjectival Noun
NA_ADJECTIVE_LIKE: str = "形状詞的"
POTENTIAL_NA_ADJECTIVE: str = "形状詞可能"
I_ADJECTIVE: str = "形容詞"
I_ADJECTIVE_LIKE: str = "形容詞的"
POTENTIAL_I_ADJECTIVE: str = "形容詞可能"

# NUMBERS
NUMERAL: str = "数詞"
Expand Down Expand Up @@ -77,6 +82,7 @@ class WordType(Enum):
BLANK_SPACE: str = "空白"
UNINDEPENDENT: str = "非自立可能"
ADNOMINAL: str = "連体詞"
CONJUNCTION: str = "接続詞"


@dataclass()
Expand Down
Loading

0 comments on commit 0fa6c48

Please sign in to comment.