Skip to content

fix: change 春日影 reading from kasukage to haruhikage #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions blog.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,10 @@ In the following sections, we will continue to use these basic capabilities to s

## Interrogative Sentence Type

Japanese interrogative sentences are typically formed using interrogative words (like なんで, なぜ, どうして) and sentence-final interrogative particles (like の, か). Looking at Ms. Nagasaki Soyo's famous quote "なんで春日影やったの" (Why play Kasukage?), we can identify its structural components:
Japanese interrogative sentences are typically formed using interrogative words (like なんで, なぜ, どうして) and sentence-final interrogative particles (like の, か). Looking at Ms. Nagasaki Soyo's famous quote "なんで春日影やったの" (Why play Haruhikage?), we can identify its structural components:

1. なんで (why) - interrogative adverb
2. 春日影 (Kasukage) - the object of the sentence
2. 春日影 (Haruhikage) - the object of the sentence
3. やった (played) - past tense form of the verb "やる"
4. の - interrogative particle

Expand Down Expand Up @@ -311,7 +311,7 @@ type InterrogativePhrase<

This generic type can take an interrogative adverb, topic (or object), verb, verb form, and interrogative particle as parameters, then combine them according to Japanese grammar rules into a complete interrogative sentence type.

Now, let's see how to use this type system to represent the sentence "なんで春日影やったの" (Why play Kasukage?):
Now, let's see how to use this type system to represent the sentence "なんで春日影やったの" (Why play Haruhikage?):

```typescript
// Define the verb "やる" (do/play)
Expand All @@ -330,7 +330,7 @@ type なんで春日影やったの = InterrogativePhrase<
>;

// Type checking example
const validQuestion: なんで春日影やったの = "なんで春日影やったの"; // "Why play Kasukage?"
const validQuestion: なんで春日影やったの = "なんで春日影やったの"; // "Why play Haruhikage?"
```

In this way, TypeScript's type system can not only represent the structure of Japanese interrogative sentences but also validate the grammatical correctness of sentences at compile time. This demonstrates how the type system can help us learn and master Japanese grammar rules.
Expand Down