Skip to content

Tools Text Diff

Diego Alfonso edited this page Jan 24, 2026 · 1 revision

Text & Diff Tools

Diff Utility

Location: Sidebar → Diff Utility

Compare two texts and visualize differences.

Usage

  1. Enter Text 1 (original)
  2. Enter Text 2 (modified)
  3. View highlighted diff

Features

  • Side-by-side comparison
  • Additions highlighted in green
  • Deletions highlighted in red
  • Based on diff-match-patch algorithm

API

rpc Diff(DiffRequest) returns (DiffResponse);

message DiffRequest {
  string text1 = 1;
  string text2 = 2;
}

message DiffResponse {
  string diff_html = 1;
}

Text Tools

Location: Sidebar → Text Tools

Manipulate and analyze text.

Operations

Action Description
Sort A-Z Sort lines alphabetically
Sort Z-A Reverse alphabetical sort
Reverse Reverse line order
Dedupe Remove duplicate lines
Remove Empty Delete blank lines
Trim Remove leading/trailing whitespace

Text Inspector

Shows real-time stats:

  • Character count
  • Word count
  • Line count

API

rpc TextInspect(TextInspectRequest) returns (TextInspectResponse);
rpc TextManipulate(TextManipulateRequest) returns (TextManipulateResponse);

Similarity

Location: Sidebar → Similarity

Calculate text similarity using Levenshtein distance.

Usage

  1. Enter Text 1
  2. Enter Text 2
  3. View distance score

Interpretation

  • Distance 0: Identical texts
  • Lower is better: Fewer edits needed

Examples

Text 1 Text 2 Distance
kitten sitting 3
hello hello 0
abc xyz 3

API

rpc TextSimilarity(SimilarityRequest) returns (SimilarityResponse);

message SimilarityRequest {
  string text1 = 1;
  string text2 = 2;
}

message SimilarityResponse {
  int32 distance = 1;
  double similarity = 2;  // Percentage
}

Clone this wiki locally