A handy collection of more than 500 native Swift extensions to boost your productivity.
This report presents the forensic synthetic code analysis of SwifterSwift/SwifterSwift, a Swift project with 15,138 GitHub stars. SynthScan v2.0 examined 30,209 lines of code across 256 source files, recording 212 pattern matches distributed across 2 syntactic categories. The overall adjusted score of 6.9 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 212 distinct pattern matches across 2 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/stale.yml | 41 | # Your comment here. | COMMENT |
| LOW | .github/stale.yml | 61 | COMMENT | |
| LOW | Sources/SwifterSwift.h | 1 | // | COMMENT |
| LOW | …/SwifterSwiftSwiftStdlib/SignedIntegerExtensions.swift | 1 | // SignedIntegerExtensions.swift - Copyright 2026 SwifterSwift | COMMENT |
| LOW | …iftSwiftStdlib/BidirectionalCollectionExtensions.swift | 1 | // BidirectionalCollectionExtensions.swift - Copyright 2026 SwifterSwift | COMMENT |
| LOW | …iftSwiftStdlib/BidirectionalCollectionExtensions.swift | 21 | /// `value`. | COMMENT |
| LOW | …ces/SwifterSwiftSwiftStdlib/ComparableExtensions.swift | 1 | // ComparableExtensions.swift - Copyright 2026 SwifterSwift | COMMENT |
| LOW | …ces/SwifterSwiftSwiftStdlib/ComparableExtensions.swift | 21 | /// | COMMENT |
| LOW | Sources/SwifterSwiftSwiftStdlib/ArrayExtensions.swift | 21 | COMMENT | |
| LOW | Sources/SwifterSwiftSwiftStdlib/ArrayExtensions.swift | 41 | /// ``` | COMMENT |
| LOW | Sources/SwifterSwiftSwiftStdlib/ArrayExtensions.swift | 81 | /// ``` | COMMENT |
| LOW | …SwifterSwiftSwiftStdlib/StringProtocolExtensions.swift | 21 | .map { (lhs: Character, _: Character) in lhs } | COMMENT |
| LOW | …erSwiftSwiftStdlib/BinaryFloatingPointExtensions.swift | 1 | // BinaryFloatingPointExtensions.swift - Copyright 2026 SwifterSwift | COMMENT |
| LOW | Sources/SwifterSwiftSwiftStdlib/FloatExtensions.swift | 41 | infix operator **: PowerPrecedence | COMMENT |
| LOW | …SwiftStdlib/DefaultStringInterpolationExtensions.swift | 1 | // DefaultStringInterpolationExtensions.swift - Copyright 2026 SwifterSwift | COMMENT |
| LOW | …urces/SwifterSwiftSwiftStdlib/SequenceExtensions.swift | 1 | // SequenceExtensions.swift - Copyright 2026 SwifterSwift | COMMENT |
| LOW | …urces/SwifterSwiftSwiftStdlib/SequenceExtensions.swift | 21 | /// ``` | COMMENT |
| LOW | …urces/SwifterSwiftSwiftStdlib/SequenceExtensions.swift | 41 | /// | COMMENT |
| LOW | …urces/SwifterSwiftSwiftStdlib/SequenceExtensions.swift | 61 | /// SwifterSwift: Calls the given closure with each element where condition is true. | COMMENT |
| LOW | …urces/SwifterSwiftSwiftStdlib/SequenceExtensions.swift | 101 | } | COMMENT |
| LOW | …urces/SwifterSwiftSwiftStdlib/SequenceExtensions.swift | 161 | /// SwifterSwift: Return a sorted array based on a key path and a compare function. | COMMENT |
| LOW | …urces/SwifterSwiftSwiftStdlib/SequenceExtensions.swift | 181 | /// - Parameter keyPath: Key path to sort by. The key path type must be Comparable. | COMMENT |
| LOW | …urces/SwifterSwiftSwiftStdlib/SequenceExtensions.swift | 281 | /// ```swift | COMMENT |
| LOW | …urces/SwifterSwiftSwiftStdlib/SequenceExtensions.swift | 301 | COMMENT | |
| LOW | …urces/SwifterSwiftSwiftStdlib/SequenceExtensions.swift | 341 | /// | COMMENT |
| LOW | …urces/SwifterSwiftSwiftStdlib/SequenceExtensions.swift | 401 | public extension Sequence where Element: AdditiveArithmetic { | COMMENT |
| LOW | …/SwifterSwiftSwiftStdlib/SignedNumericExtensions.swift | 21 | // swiftlint:disable:next force_cast | COMMENT |
| LOW | …ces/SwifterSwiftSwiftStdlib/DictionaryExtensions.swift | 1 | // DictionaryExtensions.swift - Copyright 2026 SwifterSwift | COMMENT |
| LOW | …ces/SwifterSwiftSwiftStdlib/DictionaryExtensions.swift | 21 | /// ```swift | COMMENT |
| LOW | …ces/SwifterSwiftSwiftStdlib/DictionaryExtensions.swift | 61 | } | COMMENT |
| LOW | …ces/SwifterSwiftSwiftStdlib/DictionaryExtensions.swift | 81 | /// 1, | COMMENT |
| LOW | …ces/SwifterSwiftSwiftStdlib/DictionaryExtensions.swift | 101 | COMMENT | |
| LOW | …ces/SwifterSwiftSwiftStdlib/DictionaryExtensions.swift | 121 | /// SwifterSwift: Creates a new dictionary using specified keys. | COMMENT |
| LOW | …ces/SwifterSwiftSwiftStdlib/DictionaryExtensions.swift | 141 | // MARK: - Methods (Value: Equatable) | COMMENT |
| LOW | …ces/SwifterSwiftSwiftStdlib/DictionaryExtensions.swift | 181 | public extension Dictionary { | COMMENT |
| LOW | …ces/SwifterSwiftSwiftStdlib/DictionaryExtensions.swift | 221 | } | COMMENT |
| LOW | …ces/SwifterSwiftSwiftStdlib/DictionaryExtensions.swift | 241 | rhs.forEach { result[$0] = $1 } | COMMENT |
| LOW | …ces/SwifterSwiftSwiftStdlib/DictionaryExtensions.swift | 261 | } | COMMENT |
| LOW | …ces/SwifterSwiftSwiftStdlib/DictionaryExtensions.swift | 281 | COMMENT | |
| LOW | Sources/SwifterSwiftSwiftStdlib/StringExtensions.swift | 121 | /// | COMMENT |
| LOW | Sources/SwifterSwiftSwiftStdlib/StringExtensions.swift | 141 | /// SwifterSwift: Check if string contains one or more numbers. | COMMENT |
| LOW | Sources/SwifterSwiftSwiftStdlib/StringExtensions.swift | 161 | } | COMMENT |
| LOW | Sources/SwifterSwiftSwiftStdlib/StringExtensions.swift | 181 | /// "Mom".isPalindrome -> true | COMMENT |
| LOW | Sources/SwifterSwiftSwiftStdlib/StringExtensions.swift | 201 | /// "john@doe.com".isValidEmail -> true | COMMENT |
| LOW | Sources/SwifterSwiftSwiftStdlib/StringExtensions.swift | 221 | COMMENT | |
| LOW | Sources/SwifterSwiftSwiftStdlib/StringExtensions.swift | 261 | /// | COMMENT |
| LOW | Sources/SwifterSwiftSwiftStdlib/StringExtensions.swift | 321 | /// SwifterSwift: Last character of string (if applicable). | COMMENT |
| LOW | Sources/SwifterSwiftSwiftStdlib/StringExtensions.swift | 421 | /// SwifterSwift: URL from string (if applicable). | COMMENT |
| LOW | Sources/SwifterSwiftSwiftStdlib/StringExtensions.swift | 441 | #endif | COMMENT |
| LOW | Sources/SwifterSwiftSwiftStdlib/StringExtensions.swift | 461 | return addingPercentEncoding(withAllowedCharacters: .urlHostAllowed)! | COMMENT |
| LOW | Sources/SwifterSwiftSwiftStdlib/StringExtensions.swift | 541 | /// SwifterSwift: CGFloat value from string (if applicable). | COMMENT |
| LOW | Sources/SwifterSwiftSwiftStdlib/StringExtensions.swift | 561 | var result = [String]() | COMMENT |
| LOW | Sources/SwifterSwiftSwiftStdlib/StringExtensions.swift | 581 | /// found in the table. | COMMENT |
| LOW | Sources/SwifterSwiftSwiftStdlib/StringExtensions.swift | 621 | COMMENT | |
| LOW | Sources/SwifterSwiftSwiftStdlib/StringExtensions.swift | 741 | /// "Hello World!"[safe: ..<5] -> "Hello" | COMMENT |
| LOW | Sources/SwifterSwiftSwiftStdlib/StringExtensions.swift | 841 | var uniqueChars = Set<String>() | COMMENT |
| LOW | Sources/SwifterSwiftSwiftStdlib/StringExtensions.swift | 861 | if !caseSensitive { | COMMENT |
| LOW | Sources/SwifterSwiftSwiftStdlib/StringExtensions.swift | 881 | return lowercased().components(separatedBy: string.lowercased()).count - 1 | COMMENT |
| LOW | Sources/SwifterSwiftSwiftStdlib/StringExtensions.swift | 901 | return hasSuffix(suffix) | COMMENT |
| LOW | Sources/SwifterSwiftSwiftStdlib/StringExtensions.swift | 981 | /// SwifterSwift: Slice given string from a start index to an end index (if applicable). | COMMENT |
| 137 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | CHANGELOG.md | 896 | - Added `loremIpsum(ofLength: )` static function to return a lorem ipsum string. [#318](https://github.com/SwifterSwif | CODE |
| LOW | …rSwiftTests/UIKitTests/UITextViewExtensionsTests.swift | 22 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolo | CODE |
| LOW | …rSwiftTests/UIKitTests/UITextViewExtensionsTests.swift | 22 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolo | CODE |
| LOW | …rSwiftTests/UIKitTests/UITextViewExtensionsTests.swift | 34 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolo | CODE |
| LOW | …rSwiftTests/UIKitTests/UITextViewExtensionsTests.swift | 34 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolo | CODE |
| LOW⚡ | …wiftTests/SwiftStdlibTests/StringExtensionsTests.swift | 221 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore ma | CODE |
| LOW⚡ | …wiftTests/SwiftStdlibTests/StringExtensionsTests.swift | 221 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore ma | CODE |
| LOW⚡ | …wiftTests/SwiftStdlibTests/StringExtensionsTests.swift | 226 | XCTAssertEqual(String.loremIpsum(ofLength: 26), "Lorem ipsum dolor sit amet") | STRING |
| LOW⚡ | …wiftTests/SwiftStdlibTests/StringExtensionsTests.swift | 226 | XCTAssertEqual(String.loremIpsum(ofLength: 26), "Lorem ipsum dolor sit amet") | STRING |
| LOW⚡ | Sources/SwifterSwiftSwiftStdlib/StringExtensions.swift | 403 | /// SwifterSwift: Lorem ipsum string of given length. | COMMENT |
| LOW⚡ | Sources/SwifterSwiftSwiftStdlib/StringExtensions.swift | 405 | /// - Parameter length: number of characters to limit lorem ipsum to (default is 445 - full lorem ipsum). | COMMENT |
| LOW⚡ | Sources/SwifterSwiftSwiftStdlib/StringExtensions.swift | 406 | /// - Returns: Lorem ipsum dolor sit amet... string. | COMMENT |
| LOW⚡ | Sources/SwifterSwiftSwiftStdlib/StringExtensions.swift | 406 | /// - Returns: Lorem ipsum dolor sit amet... string. | COMMENT |
| LOW⚡ | Sources/SwifterSwiftSwiftStdlib/StringExtensions.swift | 412 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore ma | CODE |
| LOW⚡ | Sources/SwifterSwiftSwiftStdlib/StringExtensions.swift | 412 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore ma | CODE |