Analyze Sentence
analyze_sentenceCounts occurrences of a specified letter in each word of a sentence, providing per-word counts and positions.
Instructions
Analyze a sentence word-by-word for a specific letter.
Shows exactly how many times a letter appears in each word.
Args:
text (string): The sentence to analyze
letter (string): The letter to count
case_sensitive (boolean): Match case exactly (default: false)
Returns: Per-word breakdown with counts and positions.
Example: analyze_sentence("The strawberry was very ripe", "r") → per-word counts
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The sentence to analyze | |
| letter | Yes | The letter to count | |
| case_sensitive | No | Match case exactly |