CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/pypi-titlecase

tessl install tessl/pypi-titlecase@2.4.0

Python port of John Gruber's titlecase.pl for intelligent title case conversion with style guide compliance

Agent Success

Agent success rate when using this tile

79%

Improvement

Agent success rate improvement when using this tile compared to baseline

0.92x

Baseline

Agent success rate without this tile

86%

task.mdevals/scenario-9/

Protocol Name Formatter

A utility for formatting network protocol and technology names in text for documentation and reports.

Capabilities

Protocol Name Detection and Formatting

The formatter should identify and properly capitalize common network protocol and technology acronyms in text.

  • Given the text "the tcp protocol is widely used", it returns "The TCP Protocol Is Widely Used" @test
  • Given the text "dns and http are essential", it returns "DNS and HTTP Are Essential" @test
  • Given the text "using ppp for connections", it returns "Using PPP for Connections" @test
  • Given the text "the ftp server runs daily", it returns "The FTP Server Runs Daily" @test

Mixed Content Handling

The formatter should handle text containing both regular words and protocol names.

  • Given the text "connecting via ssh to server", it returns "Connecting via SSH to Server" @test
  • Given the text "xml and json data formats", it returns "XML and JSON Data Formats" @test

Implementation

@generates

API

def format_protocol_text(text: str) -> str:
    """
    Format text by properly capitalizing protocol names and applying title case.

    Args:
        text: The input text containing protocol names and other words

    Returns:
        The formatted text with proper capitalization
    """
    pass

Dependencies { .dependencies }

titlecase { .dependency }

Provides title case conversion with automatic acronym detection for all-consonant words.

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/titlecase@2.4.x
tile.json