diff --git a/app/api/routes.py b/app/api/routes.py index 18ff72f..9305628 100644 --- a/app/api/routes.py +++ b/app/api/routes.py @@ -90,7 +90,9 @@ async def taxonomy(request: Request) -> TaxonomyResponse: "title": c.title, "actor": c.actor, "primary_tags": list(c.primary_tags), "secondary_tags": list(c.secondary_tags), "detectable_internal": c.detectable_internal, "high_risk": c.high_risk, - "note": c.note} + "note": c.note, "check_point": c.check_point, + "decision_steps": c.decision_steps, "author_request": c.author_request, + "tag_basis": c.tag_basis, "tag_basis_note": c.tag_basis_note} for c in det.taxonomy.cases ], ) diff --git a/app/api/schemas.py b/app/api/schemas.py index b81b54c..152c785 100644 --- a/app/api/schemas.py +++ b/app/api/schemas.py @@ -125,7 +125,7 @@ class PartialPlagiarismSignal(BaseModel): class CaseCandidate(BaseModel): - """판정된 침해 케이스 후보 1건 + v1.3 총괄표의 대표판례.""" + """원고 점검 체계 18항목 중 분류 후보 1건 + 대표판례·분류 사유 (v3.0).""" publication_verdict: str | None = Field(default=None, description="컴북스 확정 코드. 원본 미확보 시 null; 출간 허용을 뜻하지 않음.") case_id: str title: str @@ -138,6 +138,14 @@ class CaseCandidate(BaseModel): precedent_note: str | None = Field( default=None, description="대표판례 미지정 사유 (예: '확립 판례 없음').", ) + matched_tags: list[LegalTag] = Field( + default_factory=list, description="엔진 주 태그 중 이 항목의 태그와 겹친 것.", + ) + reason: str = Field(default="", description="이 항목으로 분류된 사유 (관리자 콘솔 표시용).") + decision_steps: str | None = Field(default=None, description="항목의 판정 단계.") + author_request: str | None = Field( + default=None, description="저자 보완 요청 문면. 출간·계약(P)·출간 후 보호(R) 층은 없음.", + ) class MatchResult(BaseModel): diff --git a/app/core/config.py b/app/core/config.py index 74cd3d4..7f89216 100644 --- a/app/core/config.py +++ b/app/core/config.py @@ -25,7 +25,7 @@ class Settings(BaseSettings): public_health: bool = True # /v1/health 를 인증 없이 공개할지 public_docs: bool = True # /docs, /openapi.json, /redoc 공개 여부 - engine_version: str = "o2o-plagiarism-2.2.1-cases-v1.3" + engine_version: str = "o2o-plagiarism-2.2.1-cases-v3.0" reference_corpus_dir: str = "./data/reference" taxonomy_dir: str = "./data/taxonomy" autobiography_patterns_path: str = "./data/autobiography/common_patterns.txt" diff --git a/app/engine/detector.py b/app/engine/detector.py index 90816c2..c96d9d0 100644 --- a/app/engine/detector.py +++ b/app/engine/detector.py @@ -53,7 +53,7 @@ from app.engine.similarity import ( build_text_backend, ) from app.engine.structural import extract_lemmas -from app.engine.taxonomy import Taxonomy, load_taxonomy +from app.engine.taxonomy import CaseDef, Taxonomy, load_taxonomy logger = logging.getLogger(__name__) @@ -607,8 +607,8 @@ class PlagiarismDetector: ) -> MatchResult: legacy_type = _classify_legacy(hit) tags = self._assign_tags(hit, legacy_type) - cases = (self.taxonomy.find_cases([t.tag for t in tags if t.role == "primary"]) - if self.taxonomy else ()) + primary_tags = [t.tag for t in tags if t.role == "primary"] + cases = self.taxonomy.find_cases(primary_tags) if self.taxonomy else () candidates = [ CaseCandidate( case_id=c.case_id, @@ -620,6 +620,10 @@ class PlagiarismDetector: p.case_id for p in c.representative_precedents if not p.in_runtime_corpus ], precedent_note=c.representative_precedent_note, + matched_tags=[t for t in primary_tags if t in c.primary_tags], + reason=self._case_reason(c, primary_tags, hit, cases), + decision_steps=c.decision_steps, + author_request=c.author_request, ) for c in cases ] @@ -647,6 +651,26 @@ class PlagiarismDetector: partial_signal=partial, ) + @staticmethod + def _case_reason(case: CaseDef, primary_tags: list[str], hit: SimilarityHit, + tie: tuple[CaseDef, ...]) -> str: + """관리자 콘솔에 표시할 분류 사유. 엔진 신호 → 겹친 태그 → 항목 판단 기준 순.""" + matched = "·".join(TAG_LABEL_KO[t] for t in primary_tags if t in case.primary_tags) + signal = (f"text={hit.text_sim:.2f} / lemma={hit.lemma_sim:.2f} / " + f"char={hit.element_sim.get('characters', 0.0):.2f} / " + f"motif={hit.element_sim.get('motifs', 0.0):.2f}") + reason = (f"엔진 주 태그 {matched}이(가) {case.case_id}({case.title})의 태그와 " + f"일치합니다 [{signal}].") + if len(tie) > 1: + ids = ", ".join(c.case_id for c in tie) + reason += (f" 텍스트만으로는 {ids} 중 하나로 좁혀지지 않으므로 작성자 관계" + "(대필·동일인·이중 등록)와 원본 종류를 확인해 확정해야 합니다.") + if case.check_point: + reason += f" 판단할 것: {case.check_point}" + if case.tag_basis == "추정": + reason += " (이 항목의 태그 매핑은 추정치로, 컴북스 확인 전입니다.)" + return reason + def _assign_tags(self, hit: SimilarityHit, legacy: InfringementType) -> list[InfringementTag]: """삼중 유사도 분포 → 10종 법령 태그(주/보조) 매핑. @@ -731,10 +755,10 @@ class PlagiarismDetector: tag_summary = ", ".join(primary_labels) if primary_labels else "확인 필요" if len(top.case_candidates) > 1: ids = ", ".join(c.case_id for c in top.case_candidates) - case_part = (f" 추정 케이스 후보 {ids} — 태그만으로는 구별되지 않으므로 " - f"베껴온 원본의 종류를 확인해 확정해야 합니다.") + case_part = (f" 추정 분류 후보 {ids} — 태그만으로는 구별되지 않으므로 " + f"작성자 관계와 원본 종류를 확인해 확정해야 합니다.") elif top.case_id: - case_part = f" 추정 케이스 {top.case_id} ({top.case_title})." + case_part = f" 추정 분류 {top.case_id} ({top.case_title})." else: case_part = "" return ( diff --git a/app/engine/taxonomy.py b/app/engine/taxonomy.py index d172786..048f722 100644 --- a/app/engine/taxonomy.py +++ b/app/engine/taxonomy.py @@ -1,10 +1,11 @@ -"""10종 메타 태그 분류체계 + 39개 침해 케이스 로더. +"""10종 메타 태그 분류체계 + 원고 점검 체계 18항목 로더. -IV장(메타태그)과 IX장 「침해 케이스 ↔ 메타태그 매핑 총괄표」를 그대로 JSON으로 +메타 태그(1층)와 원고 점검 체계 18항목(2층, M1~M10·P1~P4·R1~R3)을 JSON으로 보관 (data/taxonomy/). 부팅 시 1회 로드. -케이스 데이터는 실무방안 v1.3 기준이며, 케이스별 **대표판례**와 처리 구분 -(● 기술검출 근거 / ○ 약관·신고)을 함께 담는다. +항목 데이터는 아카이빙DB v3.0 「2.원고점검체계18」 기준이며, 항목별 **대표판례**와 +판정 단계·저자 보완 요청 문면을 함께 담는다. 항목↔태그 매핑은 원문에 표가 없어 +문서 근거(tag_basis=명시)와 초안(tag_basis=추정)을 구분해 둔다. """ from __future__ import annotations @@ -38,7 +39,7 @@ class RepresentativePrecedent: @dataclass(frozen=True) class CaseDef: - case_id: str # A1, A7, B1, ... + case_id: str # M1, M3a, P2, R1, ... old_no: int subgroup: str title: str @@ -48,12 +49,17 @@ class CaseDef: detectable_internal: bool = False high_risk: bool = False note: str | None = None - #: v1.3 총괄표의 처리 구분. technical_detection(●) / terms_or_report(○) + #: 처리 구분. technical_detection(엔진 판별 대상) / terms_or_report(사람 확인) handling: str = "terms_or_report" representative_precedents: tuple[RepresentativePrecedent, ...] = field(default_factory=tuple) #: 대표판례가 지정되지 않은 이유("확립 판례 없음" 등). 빈 목록과 구분한다. representative_precedent_note: str | None = None publication_verdict: str | None = None + check_point: str | None = None # 판단할 것 + decision_steps: str | None = None # 판정 단계 + author_request: str | None = None # 저자 보완 요청 문면 (P·R 층은 없음) + tag_basis: str | None = None # 명시 / 추정 + tag_basis_note: str | None = None @dataclass(frozen=True) @@ -70,16 +76,15 @@ class Taxonomy: return tag_id def find_cases(self, primary_tags: Iterable[str]) -> tuple[CaseDef, ...]: - """주 태그 조합에 가장 잘 맞는 케이스 **전부**를 반환한다. + """주 태그 조합에 가장 잘 맞는 엔진 판별 대상 항목 **전부**를 반환한다. - 태그만으로는 케이스가 1:1로 좁혀지지 않는다. A1·A2·A3·A4·A5·A6·A15 는 - 주/보조 태그가 완전히 같고, 실제 구별자는 베껴온 **원본의 종류**(가사·기사· - 위키·교재·타인 자서전)다. 원본 종류 라벨은 코퍼스에 아직 없으므로, 동점 - 케이스 중 하나를 임의로 고르는 대신 동점군을 그대로 돌려준다. 호출자는 - 이를 "이 중 하나"로 제시하고 사람이 원본 종류로 확정한다. + 후보는 detectable_internal 항목(M1·M2·M7·M10·P2)으로 한정한다. 이미지·음원· + 계약·출간 후 보호 항목은 텍스트 유사도로 잡히지 않고, 섞으면 R1(내 책을 남이 + 베낌)처럼 원고 검사와 관점이 다른 항목이 M2보다 높게 나온다. - # ponytail: 원본 종류 라벨이 코퍼스에 들어오면 이 함수에 source_type 인자를 - # 추가해 동점군을 좁힌다. 라벨 없는 상태에서 미리 배선하면 항상 None 이다. + 태그만으로는 항목이 1:1로 좁혀지지 않는다. M7·M10·P2 는 작성자 관계(대필· + 동일인·이중 등록)로 갈리는데 엔진은 텍스트만 보므로, 동점군을 그대로 돌려주고 + 사람이 확정한다. """ target = set(primary_tags) if not target: @@ -87,12 +92,9 @@ class Taxonomy: scored: list[tuple[float, CaseDef]] = [] for c in self.cases: primary = set(c.primary_tags) - if not primary: + if not primary or not c.detectable_internal: continue score = len(target & primary) / len(target | primary) - # v1.3 에서 기술검출 근거(●)로 확인된 케이스에 작은 가중치. - if c.detectable_internal: - score += 0.1 scored.append((score, c)) if not scored: return () @@ -104,7 +106,7 @@ class Taxonomy: def load_taxonomy(taxonomy_dir: Path) -> Taxonomy | None: mt_path = taxonomy_dir / "meta_tags_v1.0.json" - cs_path = taxonomy_dir / "cases_v1.3.json" + cs_path = taxonomy_dir / "cases_v3.0.json" if not mt_path.exists() or not cs_path.exists(): logger.warning("Taxonomy files not found in %s", taxonomy_dir) return None @@ -138,6 +140,11 @@ def load_taxonomy(taxonomy_dir: Path) -> Taxonomy | None: ), representative_precedent_note=c.get("representative_precedent_note"), publication_verdict=c.get("publication_verdict"), + check_point=c.get("check_point"), + decision_steps=c.get("decision_steps"), + author_request=c.get("author_request"), + tag_basis=c.get("tag_basis"), + tag_basis_note=c.get("tag_basis_note"), ) for c in cs_data["cases"] ) diff --git a/data/taxonomy/cases_v1.3.json b/data/taxonomy/cases_v1.3.json deleted file mode 100644 index f7270a3..0000000 --- a/data/taxonomy/cases_v1.3.json +++ /dev/null @@ -1,946 +0,0 @@ -{ - "version": "1.3", - "source": "v1.3 IX장 침해 케이스 ↔ 메타태그 매핑 총괄표", - "cases": [ - { - "case_id": "A1", - "old_no": 1, - "subgroup": "A-1 외부 텍스트 인용·수록", - "title": "시·노래 가사 본문 무단 인용", - "actor": "저자(가해)", - "primary_tags": [ - "reproduction", - "citation_missing" - ], - "secondary_tags": [ - "public_transmission", - "distribution" - ], - "detectable_internal": true, - "handling": "technical_detection", - "representative_precedents": [ - { - "case_id": "2012다73493", - "in_runtime_corpus": true - }, - { - "case_id": "2021가합588060", - "in_runtime_corpus": false - } - ], - "representative_precedent_note": null, - "publication_verdict": null - }, - { - "case_id": "A2", - "old_no": 2, - "subgroup": "A-1 외부 텍스트 인용·수록", - "title": "소설·수필 본문 발췌 무단 수록", - "actor": "저자(가해)", - "primary_tags": [ - "reproduction", - "citation_missing" - ], - "secondary_tags": [ - "public_transmission", - "distribution" - ], - "detectable_internal": true, - "handling": "technical_detection", - "representative_precedents": [ - { - "case_id": "2012다73493", - "in_runtime_corpus": true - }, - { - "case_id": "2010다70520", - "in_runtime_corpus": true - } - ], - "representative_precedent_note": null, - "publication_verdict": null - }, - { - "case_id": "A3", - "old_no": 3, - "subgroup": "A-1 외부 텍스트 인용·수록", - "title": "신문·잡지 기사 전문 옮겨 적기", - "actor": "저자(가해)", - "primary_tags": [ - "reproduction", - "citation_missing" - ], - "secondary_tags": [ - "public_transmission", - "distribution" - ], - "detectable_internal": true, - "handling": "technical_detection", - "representative_precedents": [ - { - "case_id": "2007다354", - "in_runtime_corpus": false - } - ], - "representative_precedent_note": null, - "publication_verdict": null - }, - { - "case_id": "A4", - "old_no": 4, - "subgroup": "A-1 외부 텍스트 인용·수록", - "title": "인터넷 블로그·SNS 글 무단 수록", - "actor": "저자(가해)", - "primary_tags": [ - "reproduction", - "citation_missing" - ], - "secondary_tags": [ - "public_transmission", - "attribution" - ], - "detectable_internal": true, - "handling": "technical_detection", - "representative_precedents": [ - { - "case_id": "2011가합60365", - "in_runtime_corpus": true - } - ], - "representative_precedent_note": null, - "publication_verdict": null - }, - { - "case_id": "A5", - "old_no": 5, - "subgroup": "A-1 외부 텍스트 인용·수록", - "title": "위키백과·백과사전 본문 그대로 사용", - "actor": "저자(가해)", - "primary_tags": [ - "reproduction", - "citation_missing" - ], - "secondary_tags": [ - "public_transmission", - "attribution" - ], - "detectable_internal": true, - "handling": "technical_detection", - "representative_precedents": [ - { - "case_id": "2012다73493", - "in_runtime_corpus": true - } - ], - "representative_precedent_note": null, - "publication_verdict": null - }, - { - "case_id": "A6", - "old_no": 6, - "subgroup": "A-2 타인 자서전·회고", - "title": "유명인 자서전 일부 베끼기", - "actor": "저자(가해)", - "primary_tags": [ - "reproduction", - "citation_missing" - ], - "secondary_tags": [ - "public_transmission", - "distribution" - ], - "detectable_internal": true, - "handling": "technical_detection", - "representative_precedents": [ - { - "case_id": "2006나16757", - "in_runtime_corpus": false - } - ], - "representative_precedent_note": null, - "publication_verdict": null - }, - { - "case_id": "A7", - "old_no": 7, - "subgroup": "A-2 타인 자서전·회고", - "title": "다른 자서전 줄거리·서사 변형 차용", - "actor": "저자(가해)", - "primary_tags": [ - "derivative_work", - "substandard_derivative" - ], - "secondary_tags": [ - "reproduction", - "publication", - "attribution" - ], - "detectable_internal": true, - "handling": "technical_detection", - "representative_precedents": [ - { - "case_id": "2006나16757", - "in_runtime_corpus": false - } - ], - "representative_precedent_note": null, - "publication_verdict": null - }, - { - "case_id": "A8", - "old_no": 8, - "subgroup": "A-2 타인 자서전·회고", - "title": "친구·가족 회고를 본인 글로 옮김", - "actor": "저자(가해)", - "primary_tags": [ - "reproduction", - "publication" - ], - "secondary_tags": [ - "attribution", - "false_authorship" - ], - "detectable_internal": false, - "handling": "terms_or_report", - "representative_precedents": [ - { - "case_id": "2010도4468", - "in_runtime_corpus": false - } - ], - "representative_precedent_note": null, - "publication_verdict": null - }, - { - "case_id": "A9", - "old_no": 9, - "subgroup": "A-2 타인 자서전·회고", - "title": "가족 일기·편지 무단 수록 (미공표)", - "actor": "저자(가해)", - "primary_tags": [ - "reproduction", - "publication" - ], - "secondary_tags": [ - "public_transmission", - "attribution" - ], - "detectable_internal": false, - "handling": "terms_or_report", - "representative_precedents": [ - { - "case_id": "2010도4468", - "in_runtime_corpus": false - } - ], - "representative_precedent_note": null, - "publication_verdict": null - }, - { - "case_id": "A10", - "old_no": 10, - "subgroup": "A-2 타인 자서전·회고", - "title": "부모·조부모 자서전 통째 재수록", - "actor": "저자(가해)", - "primary_tags": [ - "reproduction", - "derivative_work" - ], - "secondary_tags": [ - "distribution", - "publication", - "attribution" - ], - "detectable_internal": true, - "high_risk": true, - "handling": "technical_detection", - "representative_precedents": [ - { - "case_id": "2012다73493", - "in_runtime_corpus": true - }, - { - "case_id": "2011도3599", - "in_runtime_corpus": true - } - ], - "representative_precedent_note": null, - "publication_verdict": null - }, - { - "case_id": "A11", - "old_no": 11, - "subgroup": "A-2 타인 자서전·회고", - "title": "학창시절 친구의 시·편지 수록", - "actor": "저자(가해)", - "primary_tags": [ - "reproduction", - "attribution" - ], - "secondary_tags": [ - "publication" - ], - "detectable_internal": false, - "handling": "terms_or_report", - "representative_precedents": [], - "representative_precedent_note": "공표권·복제 법리", - "publication_verdict": null - }, - { - "case_id": "A12", - "old_no": 12, - "subgroup": "A-2 타인 자서전·회고", - "title": "동료 이메일·업무문서 인용", - "actor": "저자(가해)", - "primary_tags": [ - "reproduction", - "publication" - ], - "secondary_tags": [ - "attribution" - ], - "detectable_internal": false, - "handling": "terms_or_report", - "representative_precedents": [], - "representative_precedent_note": "확립 판례 없음", - "publication_verdict": null - }, - { - "case_id": "A13", - "old_no": 36, - "subgroup": "A-3 구술·강연·녹음", - "title": "부모님·스승의 강연·설교 녹음해 본문에 옮김", - "actor": "저자(가해)", - "primary_tags": [ - "reproduction", - "publication" - ], - "secondary_tags": [ - "public_transmission", - "attribution" - ], - "detectable_internal": false, - "high_risk": true, - "handling": "terms_or_report", - "representative_precedents": [], - "representative_precedent_note": "확립 판례 없음", - "publication_verdict": null - }, - { - "case_id": "A14", - "old_no": 38, - "subgroup": "A-4 학술·교육 자료", - "title": "본인 과거 논문·학위논문 발췌 무단 수록", - "actor": "저자(가해)", - "primary_tags": [ - "reproduction" - ], - "secondary_tags": [ - "public_transmission", - "distribution", - "attribution" - ], - "detectable_internal": true, - "handling": "technical_detection", - "representative_precedents": [ - { - "case_id": "2016고정432", - "in_runtime_corpus": false - } - ], - "representative_precedent_note": null, - "publication_verdict": null - }, - { - "case_id": "A15", - "old_no": 39, - "subgroup": "A-4 학술·교육 자료", - "title": "교과서·교재 본문 그대로 수록", - "actor": "저자(가해)", - "primary_tags": [ - "reproduction", - "citation_missing" - ], - "secondary_tags": [ - "public_transmission", - "distribution" - ], - "detectable_internal": true, - "handling": "technical_detection", - "representative_precedents": [ - { - "case_id": "2010다70520", - "in_runtime_corpus": true - } - ], - "representative_precedent_note": null, - "publication_verdict": null - }, - { - "case_id": "A16", - "old_no": 31, - "subgroup": "A-5 번역물", - "title": "외국 자서전·도서 직접 번역해 본인 글로 수록", - "actor": "저자(가해)", - "primary_tags": [ - "derivative_work", - "citation_missing" - ], - "secondary_tags": [ - "reproduction", - "public_transmission", - "distribution" - ], - "detectable_internal": true, - "handling": "technical_detection", - "representative_precedents": [ - { - "case_id": "2011도3599", - "in_runtime_corpus": true - }, - { - "case_id": "2007가합43936", - "in_runtime_corpus": false - } - ], - "representative_precedent_note": null, - "publication_verdict": null - }, - { - "case_id": "A17", - "old_no": 13, - "subgroup": "A-6 이미지·시각 자산", - "title": "인터넷 옛 사진·포스터 본문 삽입", - "actor": "저자(가해)", - "primary_tags": [ - "reproduction" - ], - "secondary_tags": [ - "public_transmission", - "attribution" - ], - "detectable_internal": true, - "handling": "technical_detection", - "representative_precedents": [ - { - "case_id": "2007가합16095", - "in_runtime_corpus": false - }, - { - "case_id": "2019가단5207564", - "in_runtime_corpus": false - } - ], - "representative_precedent_note": null, - "publication_verdict": null - }, - { - "case_id": "A18", - "old_no": 14, - "subgroup": "A-6 이미지·시각 자산", - "title": "졸업앨범 단체사진 무단 사용", - "actor": "저자(가해)", - "primary_tags": [ - "reproduction" - ], - "secondary_tags": [], - "detectable_internal": false, - "handling": "terms_or_report", - "representative_precedents": [ - { - "case_id": "2007가합16095", - "in_runtime_corpus": false - } - ], - "representative_precedent_note": null, - "publication_verdict": null - }, - { - "case_id": "A19", - "old_no": 15, - "subgroup": "A-6 이미지·시각 자산", - "title": "신문 스크랩·잡지 표지 사진 사용", - "actor": "저자(가해)", - "primary_tags": [ - "reproduction" - ], - "secondary_tags": [ - "public_transmission", - "attribution" - ], - "detectable_internal": true, - "handling": "technical_detection", - "representative_precedents": [ - { - "case_id": "2007가합16095", - "in_runtime_corpus": false - }, - { - "case_id": "2007다354", - "in_runtime_corpus": false - } - ], - "representative_precedent_note": null, - "publication_verdict": null - }, - { - "case_id": "A20", - "old_no": 44, - "subgroup": "A-6 이미지·시각 자산", - "title": "만화 캐릭터·브랜드 로고 본문 삽입", - "actor": "저자(가해)", - "primary_tags": [ - "reproduction" - ], - "secondary_tags": [ - "public_transmission", - "attribution" - ], - "detectable_internal": false, - "handling": "terms_or_report", - "representative_precedents": [], - "representative_precedent_note": "어문 밖(상표)", - "publication_verdict": null - }, - { - "case_id": "A21", - "old_no": 16, - "subgroup": "A-7 음원·영상", - "title": "오디오북 BGM에 상업 음원 사용", - "actor": "저자(가해)", - "primary_tags": [ - "reproduction", - "public_transmission" - ], - "secondary_tags": [ - "attribution" - ], - "detectable_internal": false, - "high_risk": true, - "handling": "terms_or_report", - "representative_precedents": [ - { - "case_id": "2006가합8583", - "in_runtime_corpus": false - } - ], - "representative_precedent_note": null, - "publication_verdict": null - }, - { - "case_id": "A22", - "old_no": 49, - "subgroup": "A-8 디지털 사적 통신", - "title": "동창회 카톡방·단톡방 대화 캡처 수록", - "actor": "저자(가해)", - "primary_tags": [ - "reproduction", - "publication" - ], - "secondary_tags": [ - "public_transmission", - "attribution" - ], - "detectable_internal": false, - "high_risk": true, - "handling": "terms_or_report", - "representative_precedents": [], - "representative_precedent_note": "확립 판례 없음", - "publication_verdict": null - }, - { - "case_id": "A23", - "old_no": 51, - "subgroup": "A-9 사후·고인 자료", - "title": "사망한 친구·동료의 유작·일기 본문 수록", - "actor": "저자(가해)", - "primary_tags": [ - "reproduction", - "publication", - "attribution" - ], - "secondary_tags": [], - "detectable_internal": false, - "high_risk": true, - "handling": "terms_or_report", - "representative_precedents": [ - { - "case_id": "2013나2004096", - "in_runtime_corpus": false - }, - { - "case_id": "2012다204587", - "in_runtime_corpus": true - } - ], - "representative_precedent_note": null, - "publication_verdict": null - }, - { - "case_id": "A24", - "old_no": 17, - "subgroup": "A-10 AI 도구 사용", - "title": "AI memorization 반환 결과 사용", - "actor": "저자(가해, 비의도)", - "primary_tags": [ - "reproduction" - ], - "secondary_tags": [ - "public_transmission", - "citation_missing" - ], - "detectable_internal": false, - "handling": "terms_or_report", - "representative_precedents": [], - "representative_precedent_note": "확립 판례 없음", - "publication_verdict": null - }, - { - "case_id": "A25", - "old_no": 18, - "subgroup": "A-10 AI 도구 사용", - "title": "AI 생성물 우연 유사 (기존 저작물)", - "actor": "저자(가해, 비의도)", - "primary_tags": [ - "reproduction" - ], - "secondary_tags": [ - "public_transmission" - ], - "detectable_internal": true, - "handling": "technical_detection", - "representative_precedents": [ - { - "case_id": "2012다73493", - "in_runtime_corpus": true - } - ], - "representative_precedent_note": null, - "publication_verdict": null - }, - { - "case_id": "A26", - "old_no": 19, - "subgroup": "A-10 AI 도구 사용", - "title": "AI 결과물을 본인 저작인 양 표시", - "actor": "저자(가해)", - "primary_tags": [ - "false_authorship" - ], - "secondary_tags": [ - "attribution" - ], - "detectable_internal": false, - "handling": "terms_or_report", - "representative_precedents": [ - { - "case_id": "2019가단31377", - "in_runtime_corpus": false - } - ], - "representative_precedent_note": null, - "publication_verdict": null - }, - { - "case_id": "A27", - "old_no": 20, - "subgroup": "A-11 대필", - "title": "대필 작가 작성분을 저자 단독 명의 출간", - "actor": "저자·플랫폼", - "primary_tags": [ - "false_authorship" - ], - "secondary_tags": [ - "attribution" - ], - "detectable_internal": false, - "handling": "terms_or_report", - "representative_precedents": [], - "representative_precedent_note": "계약·성명표시(판례 약함)", - "publication_verdict": null - }, - { - "case_id": "B1", - "old_no": 22, - "subgroup": "B 저자(피해)", - "title": "다른 사용자가 내 자서전 베낌", - "actor": "저자(피해)", - "primary_tags": [ - "reproduction" - ], - "secondary_tags": [ - "public_transmission", - "distribution", - "attribution", - "citation_missing", - "false_authorship" - ], - "detectable_internal": true, - "handling": "technical_detection", - "representative_precedents": [ - { - "case_id": "2012다73493", - "in_runtime_corpus": true - } - ], - "representative_precedent_note": null, - "publication_verdict": null - }, - { - "case_id": "B2", - "old_no": 23, - "subgroup": "B 저자(피해)", - "title": "다른 사용자가 내 서사·구조 차용", - "actor": "저자(피해)", - "primary_tags": [ - "derivative_work", - "substandard_derivative" - ], - "secondary_tags": [ - "attribution", - "citation_missing" - ], - "detectable_internal": true, - "handling": "technical_detection", - "representative_precedents": [ - { - "case_id": "2006나16757", - "in_runtime_corpus": false - } - ], - "representative_precedent_note": null, - "publication_verdict": null - }, - { - "case_id": "B3", - "old_no": 24, - "subgroup": "B 저자(피해)", - "title": "외부 사이트·SNS의 내 자서전 무단 게재", - "actor": "저자(피해)", - "primary_tags": [ - "reproduction", - "public_transmission" - ], - "secondary_tags": [ - "attribution" - ], - "detectable_internal": true, - "high_risk": true, - "handling": "technical_detection", - "representative_precedents": [ - { - "case_id": "2008다53812", - "in_runtime_corpus": false - }, - { - "case_id": "2017도19025", - "in_runtime_corpus": false - } - ], - "representative_precedent_note": null, - "publication_verdict": null - }, - { - "case_id": "B4", - "old_no": 25, - "subgroup": "B 저자(피해)", - "title": "외부의 AI 학습 데이터로 무단 수집", - "actor": "저자(피해)", - "primary_tags": [ - "reproduction", - "public_transmission" - ], - "secondary_tags": [], - "detectable_internal": false, - "high_risk": true, - "handling": "terms_or_report", - "representative_precedents": [], - "representative_precedent_note": "확립 판례 없음", - "publication_verdict": null - }, - { - "case_id": "C1", - "old_no": 21, - "subgroup": "C 플랫폼", - "title": "편집자·교정자 손이 많이 들어간 경우", - "actor": "플랫폼", - "primary_tags": [ - "integrity" - ], - "secondary_tags": [ - "derivative_work", - "attribution" - ], - "detectable_internal": true, - "handling": "technical_detection", - "representative_precedents": [ - { - "case_id": "2010다79923", - "in_runtime_corpus": true - } - ], - "representative_precedent_note": null, - "publication_verdict": null - }, - { - "case_id": "C2", - "old_no": 42, - "subgroup": "C 플랫폼", - "title": "유료 폰트 무단 사용 (본문·표지)", - "actor": "저자·플랫폼", - "primary_tags": [ - "reproduction" - ], - "secondary_tags": [ - "distribution" - ], - "detectable_internal": false, - "handling": "terms_or_report", - "representative_precedents": [ - { - "case_id": "98나23616", - "in_runtime_corpus": true - } - ], - "representative_precedent_note": null, - "publication_verdict": null - }, - { - "case_id": "C3", - "old_no": 54, - "subgroup": "C 플랫폼", - "title": "플랫폼이 사용자 자서전을 AI 학습 데이터로 사용", - "actor": "플랫폼", - "primary_tags": [ - "reproduction", - "public_transmission" - ], - "secondary_tags": [ - "derivative_work" - ], - "detectable_internal": false, - "high_risk": true, - "handling": "terms_or_report", - "representative_precedents": [], - "representative_precedent_note": "확립 판례 없음", - "publication_verdict": null - }, - { - "case_id": "D1", - "old_no": 26, - "subgroup": "D 다른 사용자", - "title": "2차 창작 기능에서 원저자 동의 없는 변형", - "actor": "다른 사용자", - "primary_tags": [ - "derivative_work", - "attribution", - "integrity" - ], - "secondary_tags": [ - "publication" - ], - "detectable_internal": true, - "high_risk": true, - "handling": "technical_detection", - "representative_precedents": [ - { - "case_id": "2021가합25193", - "in_runtime_corpus": true - }, - { - "case_id": "2011도3599", - "in_runtime_corpus": true - } - ], - "representative_precedent_note": null, - "publication_verdict": null - }, - { - "case_id": "E1", - "old_no": 27, - "subgroup": "E 유족", - "title": "저자 사후 유족이 본문 임의 수정", - "actor": "유족", - "primary_tags": [ - "integrity" - ], - "secondary_tags": [ - "reproduction", - "distribution" - ], - "detectable_internal": false, - "handling": "terms_or_report", - "representative_precedents": [ - { - "case_id": "2010다79923", - "in_runtime_corpus": true - }, - { - "case_id": "2012다204587", - "in_runtime_corpus": true - } - ], - "representative_precedent_note": null, - "publication_verdict": null - }, - { - "case_id": "E2", - "old_no": 28, - "subgroup": "E 유족", - "title": "사후 유고 자서전에 미공표 일기 포함", - "actor": "유족", - "primary_tags": [ - "reproduction", - "publication" - ], - "secondary_tags": [ - "attribution" - ], - "detectable_internal": false, - "handling": "terms_or_report", - "representative_precedents": [ - { - "case_id": "2013나2004096", - "in_runtime_corpus": false - } - ], - "representative_precedent_note": null, - "publication_verdict": null - }, - { - "case_id": "X1", - "old_no": 29, - "subgroup": "X 분류체계 외", - "title": "자서전 등장 제3자의 사적 정보 노출", - "actor": "저자(가해)", - "primary_tags": [], - "secondary_tags": [], - "detectable_internal": false, - "note": "사생활 침해 영역, 약관·운영 절차로 처리", - "handling": "terms_or_report", - "representative_precedents": [], - "representative_precedent_note": "저작권 밖(개인정보)", - "publication_verdict": null - }, - { - "case_id": "X2", - "old_no": 30, - "subgroup": "X 분류체계 외", - "title": "자서전 등장 제3자의 명예 훼손 묘사", - "actor": "저자(가해)", - "primary_tags": [], - "secondary_tags": [], - "detectable_internal": false, - "note": "명예훼손 영역, 약관·운영 절차로 처리", - "handling": "terms_or_report", - "representative_precedents": [ - { - "case_id": "2012도13718", - "in_runtime_corpus": false - } - ], - "representative_precedent_note": null, - "publication_verdict": null - } - ] -} diff --git a/data/taxonomy/cases_v3.0.json b/data/taxonomy/cases_v3.0.json new file mode 100644 index 0000000..753a318 --- /dev/null +++ b/data/taxonomy/cases_v3.0.json @@ -0,0 +1,635 @@ +{ + "version": "3.0", + "source": "저작권침해요소_아카이빙DB_v3.0 「2.원고점검체계18」 + 부록1-A v6.0 6-3 대표판례. tag_basis=추정 항목은 컴북스 확인 대기", + "cases": [ + { + "case_id": "M1", + "subgroup": "M 원고 점검", + "title": "남의 글을 옮겨 실었다", + "actor": "저자", + "primary_tags": [ + "reproduction", + "citation_missing" + ], + "secondary_tags": [], + "detectable_internal": true, + "handling": "technical_detection", + "check_point": "Q3 인용 요건(분량·주종관계·출처·목적) → 넘으면 허락 필요", + "decision_steps": "인용 요건 안 → 출처 보완 / 요건 밖·허락 없음 → 출간 불가", + "publication_verdict": "조건부", + "evidence_grade": "확정", + "author_request": "다른 분이 쓴 글이 들어 있어요. 꼭 필요한 만큼만 남기고 어디서 가져왔는지 밝혀 주세요. 더 길게 싣고 싶다면 그분의 허락이 필요해요.", + "tag_basis": "명시", + "tag_basis_note": "부록3-B 5-1: 출처 미표시(T09) → M1", + "representative_precedents": [ + { + "case_id": "2021가합570441", + "in_runtime_corpus": true + }, + { + "case_id": "2021가합572409", + "in_runtime_corpus": true + }, + { + "case_id": "2006노1392", + "in_runtime_corpus": false + } + ], + "representative_precedent_note": null + }, + { + "case_id": "M2", + "subgroup": "M 원고 점검", + "title": "남의 글을 바탕으로 다시 썼다", + "actor": "저자", + "primary_tags": [ + "reproduction", + "derivative_work", + "substandard_derivative" + ], + "secondary_tags": [], + "detectable_internal": true, + "handling": "technical_detection", + "check_point": "Q1 아이디어·사실인가 표현인가 → Q2 실질적 유사성·의거성", + "decision_steps": "표현까지 닮음 → 허락 또는 다시 쓰기 / 아이디어·사실 수준 → 통과", + "publication_verdict": "조건부(동의 확보)", + "evidence_grade": "확정", + "author_request": "다른 글의 줄거리나 표현과 많이 닮은 대목이 있어요. 그때의 경험을 저자님의 말로 다시 써 주시면 이야기가 온전히 저자님의 것이 돼요.", + "tag_basis": "명시", + "tag_basis_note": "부록3-B 3-4: 인칭 치환 개작 — 창작성 미부가 시 복제(T01·T10), 부가 시 2차적저작물(T04)", + "representative_precedents": [ + { + "case_id": "2012나4904", + "in_runtime_corpus": true + }, + { + "case_id": "2012가합541175", + "in_runtime_corpus": true + }, + { + "case_id": "2012가합80045", + "in_runtime_corpus": true + }, + { + "case_id": "2019가단553833", + "in_runtime_corpus": true + } + ], + "representative_precedent_note": null + }, + { + "case_id": "M3a", + "subgroup": "M 원고 점검", + "title": "남이 찍거나 그린 사진·그림을 넣었다", + "actor": "저자", + "primary_tags": [ + "reproduction", + "public_transmission" + ], + "secondary_tags": [], + "detectable_internal": false, + "handling": "terms_or_report", + "check_point": "Q1 저작물성(실용 사진 여부) → Q3 이용허락 범위(스톡·무료 조건)", + "decision_steps": "이용허락 증빙 있음 → 통과 / 없음 → 교체 요청", + "publication_verdict": "조건부", + "evidence_grade": "확정", + "author_request": "직접 찍거나 그리지 않은 사진·그림이 있어요. 써도 된다는 확인(구입 내역·이용 조건)을 올려 주시거나, 가지고 계신 사진으로 바꿔 주세요.", + "tag_basis": "추정", + "tag_basis_note": "문서에 태그 근거 없음", + "representative_precedents": [ + { + "case_id": "2019가단5207564", + "in_runtime_corpus": false + }, + { + "case_id": "2024나28904", + "in_runtime_corpus": true + }, + { + "case_id": "2025가합8762", + "in_runtime_corpus": true + }, + { + "case_id": "2006나21479", + "in_runtime_corpus": true + } + ], + "representative_precedent_note": null + }, + { + "case_id": "M3b", + "subgroup": "M 원고 점검", + "title": "캐릭터·로고·디자인·서체를 넣었다", + "actor": "저자", + "primary_tags": [ + "reproduction" + ], + "secondary_tags": [], + "detectable_internal": false, + "handling": "terms_or_report", + "check_point": "Q1 응용미술저작물·제호의 저작물성 → 허락 여부. 서체는 앱이 고정 서체만 쓰게 함", + "decision_steps": "본문 설명에 딸린 작은 인용 + 출처 명기 → 통과 / 이미지가 중심이거나 허락 없음 → 교체 요청 / 서체 → 시스템 고정 / 제호 → 대개 통과", + "publication_verdict": "조건부", + "evidence_grade": "확정", + "author_request": "캐릭터·로고·디자인이 들어간 이미지가 있어요. 이야기를 설명하려고 작게 곁들인 것이라면 출처를 밝혀 주세요. 이미지가 중심이 된다면 권리자의 허락을 받거나 다른 이미지로 바꿔 주세요.", + "tag_basis": "추정", + "tag_basis_note": "문서에 태그 근거 없음", + "representative_precedents": [ + { + "case_id": "2020나64345", + "in_runtime_corpus": true + }, + { + "case_id": "2022가단230664", + "in_runtime_corpus": true + }, + { + "case_id": "2012다41410", + "in_runtime_corpus": true + }, + { + "case_id": "2023카합21631", + "in_runtime_corpus": false + } + ], + "representative_precedent_note": null + }, + { + "case_id": "M4", + "subgroup": "M 원고 점검", + "title": "소리·영상 자료를 넣었다", + "actor": "저자", + "primary_tags": [ + "reproduction", + "public_transmission" + ], + "secondary_tags": [], + "detectable_internal": false, + "handling": "terms_or_report", + "check_point": "신탁관리단체 허락·저작인접권 → 허락 여부", + "decision_steps": "허락 확인 → 통과 / 없음 → 출간 불가(오디오북 배경음은 교체)", + "publication_verdict": "조건부", + "evidence_grade": "확정·얇음", + "author_request": "노래·음원·영상이 들어 있어요. 가사나 음원은 따로 허락이 필요해요. 그 시절을 떠올리게 하는 노래 제목과 느낌을 저자님의 말로 적어 주시는 것도 좋아요.", + "tag_basis": "추정", + "tag_basis_note": "문서에 태그 근거 없음", + "representative_precedents": [ + { + "case_id": "89도702", + "in_runtime_corpus": false + }, + { + "case_id": "2007나70720", + "in_runtime_corpus": false + }, + { + "case_id": "2020고정380", + "in_runtime_corpus": true + } + ], + "representative_precedent_note": null + }, + { + "case_id": "M5", + "subgroup": "M 원고 점검", + "title": "남이 쓴 편지·일기·메시지를 실었다", + "actor": "저자", + "primary_tags": [ + "publication", + "reproduction" + ], + "secondary_tags": [], + "detectable_internal": false, + "handling": "terms_or_report", + "check_point": "Q1 편지의 저작물성 → 공표권·작성자(사망 시 유족) 권리", + "decision_steps": "동의 확인 → 통과 / 출처 명기한 짧은 인용 → 통과 / 분량이 많고 동의 없음 → 풀어 쓰기 요청", + "publication_verdict": "조건부(동의 확보)", + "evidence_grade": "확정", + "author_request": "다른 분이 쓴 편지·일기·메시지가 들어 있어요. 짧게 인용하셨다면 누가 쓴 글인지 밝혀 주세요. 길게 싣고 싶으시면 글쓴이(돌아가셨다면 가족)의 동의를 받거나, 그 내용을 저자님의 말로 풀어 써 주세요.", + "tag_basis": "추정", + "tag_basis_note": "T05는 판단할 것(공표권) 명시, T01은 추정", + "representative_precedents": [ + { + "case_id": "94카합9230", + "in_runtime_corpus": false + } + ], + "representative_precedent_note": null + }, + { + "case_id": "M6", + "subgroup": "M 원고 점검", + "title": "남의 말을 받아 적었다", + "actor": "저자", + "primary_tags": [ + "reproduction", + "attribution" + ], + "secondary_tags": [], + "detectable_internal": false, + "handling": "terms_or_report", + "check_point": "구술자의 저작권·공동저작 여부", + "decision_steps": "동의 확인 → 통과 / 공동저작이면 저작자 표시(M7)로", + "publication_verdict": "조건부(동의 확보)", + "evidence_grade": "확정", + "author_request": "다른 분의 말씀을 길게 옮겨 적은 대목이 있어요. 말씀하신 분께 책에 실어도 되는지 여쭤 주세요.", + "tag_basis": "추정", + "tag_basis_note": "문서에 태그 근거 없음", + "representative_precedents": [ + { + "case_id": "2023가합10422", + "in_runtime_corpus": true + } + ], + "representative_precedent_note": null + }, + { + "case_id": "M7", + "subgroup": "M 원고 점검", + "title": "원고를 여럿이 함께 만들었다", + "actor": "저자", + "primary_tags": [ + "attribution", + "false_authorship", + "reproduction", + "substandard_derivative" + ], + "secondary_tags": [], + "detectable_internal": true, + "handling": "technical_detection", + "check_point": "저작자 지위·업무상저작물·허위 저작자 표시(제137조)", + "decision_steps": "표시 정정 → 통과 / 사실과 다른 저작자 표시 → 출간 불가(형사) / 이중 등록 → 출판권 충돌", + "publication_verdict": "조건부", + "evidence_grade": "확정", + "author_request": "함께 쓰거나 도움받은 분이 있다면 알려 주세요. 책에 이름을 어떻게 올릴지 함께 정해요.", + "tag_basis": "명시", + "tag_basis_note": "보고서 계약 대조표: T06·T08 → M7 / 부록3-B 5-1: 허락 미확인(T01·T10) → M7·P2", + "representative_precedents": [ + { + "case_id": "2024나306378", + "in_runtime_corpus": true + }, + { + "case_id": "2007가합5940", + "in_runtime_corpus": false + }, + { + "case_id": "2010도4468", + "in_runtime_corpus": false + }, + { + "case_id": "2023가합10422", + "in_runtime_corpus": true + } + ], + "representative_precedent_note": null + }, + { + "case_id": "M8", + "subgroup": "M 원고 점검", + "title": "AI가 만든 문장·이미지가 있다", + "actor": "저자", + "primary_tags": [], + "secondary_tags": [], + "detectable_internal": false, + "handling": "terms_or_report", + "check_point": "Q2 의거성은 자동 판정 불가 → 저자 확인", + "decision_steps": "저자가 출처 확인 → 통과 / 확인 안 됨 → 다시 쓰기", + "publication_verdict": "저자 확인", + "evidence_grade": "유추·법리", + "author_request": "저작권 침해 가능성이 있으니 확인해 주세요.", + "tag_basis": "명시", + "tag_basis_note": "부록1-A: 의거성 자동 판정 불가 → 저자 확인. 대응 태그 없음", + "representative_precedents": [], + "representative_precedent_note": "풀에 맞는 판례 없음. 보강 근거 대표: Thaler v. Perlmutter(미국·확정) · GEMA v. OpenAI(독일·1심 미확정) · 2025카합20687(저작권 외·부정경쟁)" + }, + { + "case_id": "M9", + "subgroup": "M 원고 점검", + "title": "실존 인물을 그렸다", + "actor": "저자", + "primary_tags": [], + "secondary_tags": [], + "detectable_internal": false, + "handling": "terms_or_report", + "check_point": "명예훼손·사생활·초상권·퍼블리시티권·사자 명예(저작권법 밖)", + "decision_steps": "사실 확인·동의·가명 → 통과 / 허위 사실 적시 → 출간 불가", + "publication_verdict": "출간 불가 / 조건부", + "evidence_grade": "확정", + "author_request": "실제 인물이 나오는 대목이 있어요. 그분의 이름·사진·사생활이 드러나는지 살펴 주세요. 필요하면 이름을 바꾸거나 동의를 받아 주세요.", + "tag_basis": "명시", + "tag_basis_note": "저작권법 밖 — 인접법 N03(명예훼손·사자명예훼손)", + "representative_precedents": [ + { + "case_id": "2011가합60365", + "in_runtime_corpus": true + }, + { + "case_id": "94카합9230", + "in_runtime_corpus": false + }, + { + "case_id": "95카합3438", + "in_runtime_corpus": false + }, + { + "case_id": "2006가합6780", + "in_runtime_corpus": false + } + ], + "representative_precedent_note": null + }, + { + "case_id": "M10", + "subgroup": "M 원고 점검", + "title": "저자 자신의 기존 글을 다시 실었다", + "actor": "저자", + "primary_tags": [ + "reproduction", + "distribution" + ], + "secondary_tags": [], + "detectable_internal": true, + "handling": "technical_detection", + "check_point": "권리가 아직 저자에게 있는가(양도·출판권 설정)", + "decision_steps": "권리 확인 → 통과 / 양도·출판권 존속 → 기존 발행처 허락 또는 새로 고쳐 써서 일부 활용", + "publication_verdict": "조건부", + "evidence_grade": "확정", + "author_request": "예전에 다른 곳에서 낸 글이 들어 있나요? 그 글의 출판 계약이 아직 살아 있다면 그곳의 허락을 받으시거나, 지금의 이야기에 맞게 새로 고쳐 써 주세요.", + "tag_basis": "추정", + "tag_basis_note": "문서에 태그 근거 없음", + "representative_precedents": [ + { + "case_id": "2024도14181", + "in_runtime_corpus": true + }, + { + "case_id": "2025가합50448", + "in_runtime_corpus": true + } + ], + "representative_precedent_note": null + }, + { + "case_id": "P1", + "subgroup": "P 출간·계약", + "title": "남이 원고·작품을 고친다", + "actor": "발행사", + "primary_tags": [ + "integrity" + ], + "secondary_tags": [], + "detectable_internal": false, + "handling": "terms_or_report", + "check_point": "동일성유지권(제13조)·제58조의2(재발행 시 수정 기회). 유족이 고친 경우·저자 사후는 R3, 공동저자 다툼은 M7도. 폐기·철거만은 해당 없음", + "decision_steps": "저자(유족) 동의 → 진행 / 없음 → 원문 유지", + "publication_verdict": "조건부(동의 확보)", + "evidence_grade": "확정", + "author_request": null, + "tag_basis": "명시", + "tag_basis_note": "판단할 것: 동일성유지권(제13조) / 보고서: T05~T07 → P1", + "representative_precedents": [ + { + "case_id": "2024나306378", + "in_runtime_corpus": true + }, + { + "case_id": "90가합15896", + "in_runtime_corpus": false + }, + { + "case_id": "2010다79923", + "in_runtime_corpus": true + }, + { + "case_id": "2009나92144", + "in_runtime_corpus": true + } + ], + "representative_precedent_note": null + }, + { + "case_id": "P2", + "subgroup": "P 출간·계약", + "title": "계약 범위 밖 이용·이중출판", + "actor": "발행사", + "primary_tags": [ + "reproduction", + "distribution", + "substandard_derivative" + ], + "secondary_tags": [], + "detectable_internal": true, + "handling": "technical_detection", + "check_point": "출판권·배타적발행권·양도의 구별, 존속·해지", + "decision_steps": "계약 범위 안 → 진행 / 밖 → 추가 동의 / 충돌 → 출판권 충돌", + "publication_verdict": "조건부(동의 확보)", + "evidence_grade": "확정", + "author_request": null, + "tag_basis": "명시", + "tag_basis_note": "부록3-B 5-1: 허락 미확인(T01·T10) → M7·P2", + "representative_precedents": [ + { + "case_id": "2012가합541175", + "in_runtime_corpus": true + }, + { + "case_id": "2007가합5940", + "in_runtime_corpus": false + }, + { + "case_id": "2021가합20761", + "in_runtime_corpus": true + }, + { + "case_id": "87도2604", + "in_runtime_corpus": true + } + ], + "representative_precedent_note": null + }, + { + "case_id": "P3", + "subgroup": "P 출간·계약", + "title": "정산·해지", + "actor": "발행사", + "primary_tags": [], + "secondary_tags": [], + "detectable_internal": false, + "handling": "terms_or_report", + "check_point": "인세·사용료·선불금·정산 보고·신탁 계약", + "decision_steps": null, + "publication_verdict": "운영 조치", + "evidence_grade": "확정", + "author_request": null, + "tag_basis": "명시", + "tag_basis_note": "계약(정산·해지) 사항 — 대응 태그 없음", + "representative_precedents": [ + { + "case_id": "2008나66254", + "in_runtime_corpus": false + }, + { + "case_id": "2011다101148", + "in_runtime_corpus": true + }, + { + "case_id": "2021가합36748", + "in_runtime_corpus": true + }, + { + "case_id": "2023가단253664", + "in_runtime_corpus": true + } + ], + "representative_precedent_note": null + }, + { + "case_id": "P4", + "subgroup": "P 출간·계약", + "title": "플랫폼 기능과 게시물 책임", + "actor": "발행사", + "primary_tags": [], + "secondary_tags": [], + "detectable_internal": false, + "handling": "terms_or_report", + "check_point": "OSP 책임 제한(제102조)·전송 중단(제103조)·링크·방조·AI 학습", + "decision_steps": "신고 → 임시 조치 / 2차 창작·학습 → 원저자 동의", + "publication_verdict": "신고·삭제 / 조건부", + "evidence_grade": "확정·얇음", + "author_request": null, + "tag_basis": "명시", + "tag_basis_note": "별도 카테고리 S05(제103조 복제·전송 중단 절차)", + "representative_precedents": [ + { + "case_id": "2022가합541143", + "in_runtime_corpus": true + }, + { + "case_id": "2007나60990", + "in_runtime_corpus": false + }, + { + "case_id": "2024나62859", + "in_runtime_corpus": true + }, + { + "case_id": "2003노4296", + "in_runtime_corpus": false + } + ], + "representative_precedent_note": null + }, + { + "case_id": "R1", + "subgroup": "R 출간 후 보호", + "title": "내 책을 남이 베끼거나 고쳐 썼다", + "actor": "발행사", + "primary_tags": [ + "reproduction", + "derivative_work" + ], + "secondary_tags": [], + "detectable_internal": false, + "handling": "terms_or_report", + "check_point": "Q2 실질적 유사성·의거성. 일부 복제·각색·요약·번역 차용. 책이 아닌 글(블로그·기사·논문)은 R1 아님 — M1·M2 근거로만", + "decision_steps": "유사 확인 → 발행사는 대응 지원", + "publication_verdict": "권리 보호", + "evidence_grade": "확정", + "author_request": null, + "tag_basis": "추정", + "tag_basis_note": "문서에 태그 근거 없음", + "representative_precedents": [ + { + "case_id": "2012나4904", + "in_runtime_corpus": true + }, + { + "case_id": "2021가합570441", + "in_runtime_corpus": true + }, + { + "case_id": "2012가합80045", + "in_runtime_corpus": true + }, + { + "case_id": "2008노760", + "in_runtime_corpus": false + } + ], + "representative_precedent_note": null + }, + { + "case_id": "R2", + "subgroup": "R 출간 후 보호", + "title": "내 책이 무단으로 유통된다", + "actor": "발행사", + "primary_tags": [ + "reproduction", + "public_transmission", + "distribution" + ], + "secondary_tags": [], + "detectable_internal": false, + "handling": "terms_or_report", + "check_point": "복제·전송·배포권 침해, 손해액(제125·126조). 고쳐 쓰거나 일부 베낀 것은 R1, 플랫폼 방조는 P4도", + "decision_steps": "발견 → 삭제 요청·법적 대응", + "publication_verdict": "신고·삭제", + "evidence_grade": "확정", + "author_request": null, + "tag_basis": "명시", + "tag_basis_note": "판단할 것: 복제·전송·배포권 침해", + "representative_precedents": [ + { + "case_id": "2019가합106853", + "in_runtime_corpus": true + }, + { + "case_id": "2022가합516598", + "in_runtime_corpus": true + }, + { + "case_id": "2021가합588060", + "in_runtime_corpus": false + }, + { + "case_id": "96나52092", + "in_runtime_corpus": false + } + ], + "representative_precedent_note": null + }, + { + "case_id": "R3", + "subgroup": "R 출간 후 보호", + "title": "저자 사후의 권리", + "actor": "발행사", + "primary_tags": [], + "secondary_tags": [], + "detectable_internal": false, + "handling": "terms_or_report", + "check_point": "사후 인격권(제14조②)·유족의 권리 행사", + "decision_steps": "유족 요청 → 사후 인격권 범위에서 처리", + "publication_verdict": "권리 보호", + "evidence_grade": "확정", + "author_request": null, + "tag_basis": "명시", + "tag_basis_note": "별도 카테고리 S03(제14조 저작인격권 일신전속·사후)", + "representative_precedents": [ + { + "case_id": "2024가합96852", + "in_runtime_corpus": true + }, + { + "case_id": "2023고단1649", + "in_runtime_corpus": true + }, + { + "case_id": "94다7980", + "in_runtime_corpus": false + } + ], + "representative_precedent_note": null + } + ] +} \ No newline at end of file diff --git a/tests/test_case_coverage.py b/tests/test_case_coverage.py index af0295b..737b245 100644 --- a/tests/test_case_coverage.py +++ b/tests/test_case_coverage.py @@ -43,7 +43,7 @@ def test_out_of_scope_excluded_from_request(): assert rep["need_data_cases"] == 0 -# --- 태그 → 케이스 도달 범위 회귀 (v1.3) --------------------------------- +# --- 태그 → 항목 도달 범위 회귀 (v3.0) --------------------------------- from pathlib import Path @@ -68,20 +68,20 @@ def _reachable(): def test_reachable_cases_cover_most_technical_detection_cases(): - """v1.3 ● 19건 중 16건이 태그만으로 후보에 오른다. + """엔진 판별 대상 5항목 중 M1·M2·M10 이 태그만으로 후보에 오른다. - 남은 B3·C1·D1 은 게재 사실·편집 개입·성명표시처럼 텍스트에서 알 수 없는 - 사실이 필요해 LegalContext 없이는 도달할 수 없다. 이 경계를 고정한다. + 남은 M7(공동 원고)·P2(이중출판)는 성명표시·허위 저작자 표시처럼 작성자 + 관계를 알아야 하는 태그가 필요해 텍스트만으로는 도달할 수 없다. 이 경계를 고정한다. """ tax = load_taxonomy(ROOT / "data/taxonomy") detectable = {c.case_id for c in tax.cases if c.detectable_internal} reachable = _reachable() - assert detectable - reachable == {"B3", "C1", "D1"} - assert len(reachable & detectable) == 16 + assert reachable == {"M1", "M2", "M10"} + assert detectable - reachable == {"M7", "P2"} def test_no_tie_group_is_silently_collapsed(): """동점군이 2건 이상이면 전부 반환된다 — 하나만 남으면 나머지가 사장된다.""" tax = load_taxonomy(ROOT / "data/taxonomy") - assert len(tax.find_cases(["reproduction", "citation_missing"])) == 7 - assert len(tax.find_cases(["derivative_work", "substandard_derivative"])) == 2 + assert len(tax.find_cases(["reproduction"])) == 2 + assert len(tax.find_cases(["derivative_work", "substandard_derivative"])) == 1 diff --git a/tests/test_case_matching_views.py b/tests/test_case_matching_views.py index b01cda9..d616261 100644 --- a/tests/test_case_matching_views.py +++ b/tests/test_case_matching_views.py @@ -57,10 +57,12 @@ def test_admin_preserves_candidates_and_unknown_verdict(): assert response('admin').request_id != response('admin').request_id -def test_taxonomy_does_not_invent_missing_verdicts(): +def test_taxonomy_verdicts_come_from_v3_checklist(): tax=load_taxonomy(Path('data/taxonomy')) - assert len(tax.cases)==39 - assert all(c.publication_verdict is None for c in tax.cases) + assert len(tax.cases)==18 + verdicts={c.case_id: c.publication_verdict for c in tax.cases} + assert verdicts['M1']=='조건부' and verdicts['M2']=='조건부(동의 확보)' + assert all(verdicts.values()) def test_real_detector_forwards_audience_for_direct_batch_and_review(tmp_path): @@ -99,8 +101,14 @@ def test_real_detector_forwards_audience_for_direct_batch_and_review(tmp_path): 'doc_id':'admin-test','text':text,'options':{'threshold':0}}).json() assert admin['audience']=='admin' and 'legal_risk' in admin assert any(m['case_candidates'] for m in admin['matches']) - assert all(c['publication_verdict'] is None for m in admin['matches'] - for c in m['case_candidates']) + verdicts={c.case_id: c.publication_verdict + for c in load_taxonomy(Path('data/taxonomy')).cases} + for m in admin['matches']: + for c in m['case_candidates']: + assert c['publication_verdict']==verdicts[c['case_id']] + assert c['reason'].startswith('엔진 주 태그') and c['matched_tags'] + assert all(m['publication_verdict_status']=='review_required' + for m in admin['matches'] if m['case_candidates']) def test_author_no_match_message_and_invalid_audience(): @@ -111,3 +119,18 @@ def test_author_no_match_message_and_invalid_audience(): assert result.model_dump()['ccl_basis'] == '등록된 비교 자료에서 일치 구간을 찾지 못했습니다.' with pytest.raises(ValidationError): DetectOptions(audience='public') + + +def test_case_reason_explains_tags_ties_and_draft_mapping(): + from app.engine.detector import PlagiarismDetector + from app.engine.similarity import SimilarityHit + tax = load_taxonomy(Path('data/taxonomy')) + hit = SimilarityHit(doc_id='d', title='t', score=.9, text_sim=.45, lemma_sim=.3, + element_sim={'characters': .35}, evidence=[]) + tie = tax.find_cases(['reproduction']) + m1, m10 = tie + reason = PlagiarismDetector._case_reason(m1, ['reproduction'], hit, tie) + assert '복제권' in reason and 'M1(남의 글을 옮겨 실었다)' in reason + assert 'text=0.45' in reason and 'M1, M10 중 하나로' in reason + assert '판단할 것: Q3' in reason and '추정치' not in reason + assert '추정치' in PlagiarismDetector._case_reason(m10, ['reproduction'], hit, tie) diff --git a/tests/test_pdf_compliance.py b/tests/test_pdf_compliance.py index 0895698..0eda066 100644 --- a/tests/test_pdf_compliance.py +++ b/tests/test_pdf_compliance.py @@ -27,11 +27,10 @@ def test_taxonomy_loads_10_tags_and_cases(): tax = load_taxonomy(ROOT / "data/taxonomy") assert tax is not None assert len(tax.meta_tags) == 10, f"PDF IV장: 10종 메타 태그 필요, 현재 {len(tax.meta_tags)}" - # v1.3 IX장 총괄표 본문의 통계 줄은 "●16/○22 = 38"로 적혀 있으나 표를 실제로 - # 세면 ●19/○20 = 39 다. 표를 기준으로 고정한다. - assert len(tax.cases) == 39, f"v1.3 IX장 총괄표: 39 케이스, 현재 {len(tax.cases)}" - assert sum(c.detectable_internal for c in tax.cases) == 19 - assert sum(c.handling == "technical_detection" for c in tax.cases) == 19 + # 아카이빙DB v3.0 「2.원고점검체계18」. 엔진 판별 대상은 M1·M2·M7·M10·P2. + assert len(tax.cases) == 18, f"v3.0 원고 점검 체계: 18항목, 현재 {len(tax.cases)}" + assert {c.case_id for c in tax.cases if c.detectable_internal} == {"M1", "M2", "M7", "M10", "P2"} + assert sum(c.handling == "technical_detection" for c in tax.cases) == 5 def test_taxonomy_has_required_legal_tags(): @@ -47,35 +46,34 @@ def test_taxonomy_has_required_legal_tags(): def test_taxonomy_case_groups(): tax = load_taxonomy(ROOT / "data/taxonomy") - groups = {c.case_id[0] for c in tax.cases} - assert {"A", "B", "C", "D", "E", "X"}.issubset(groups) - a_cases = [c for c in tax.cases if c.case_id.startswith("A")] - assert len(a_cases) == 27, f"PDF: A그룹(저자 가해) 27건, 현재 {len(a_cases)}" + counts = {g: sum(c.case_id.startswith(g) for c in tax.cases) for g in "MPR"} + # 원고 점검 M 11(M3a·M3b 포함) · 출간·계약 P 4 · 출간 후 보호 R 3 + assert counts == {"M": 11, "P": 4, "R": 3}, counts def test_case_mapping_returns_full_tie_group_not_one_arbitrary_pick(): - """reproduction+citation_missing 은 7개 케이스가 주/보조 태그까지 동일하다. + """복제권만 잡히면 M1(남의 글)과 M10(자기 글 재수록)이 동점이다. - 하나만 고르면 나머지 6건이 결과에 영원히 등장하지 않으므로 동점군을 모두 낸다. + 둘은 작성자 관계로만 갈리므로 하나를 임의로 고르지 않고 동점군을 모두 낸다. """ tax = load_taxonomy(ROOT / "data/taxonomy") - ids = [c.case_id for c in tax.find_cases(["reproduction", "citation_missing"])] - assert set(ids) == {"A1", "A2", "A3", "A4", "A5", "A6", "A15"}, ids - assert all(i.startswith("A") for i in ids) + assert [c.case_id for c in tax.find_cases(["reproduction"])] == ["M1", "M10"] + assert [c.case_id for c in tax.find_cases(["reproduction", "citation_missing"])] == ["M1"] def test_every_case_carries_v13_precedent_mapping(): - """39건 전부가 대표판례를 갖거나, 없는 이유를 명시한다. 빈칸은 허용하지 않는다.""" + """18항목 전부가 대표판례를 갖거나, 없는 이유를 명시한다. 빈칸은 허용하지 않는다.""" tax = load_taxonomy(ROOT / "data/taxonomy") for c in tax.cases: assert c.representative_precedents or c.representative_precedent_note, c.case_id -def test_high_risk_cases_marked(): +def test_draft_tag_mappings_are_marked(): + """원문에 항목↔태그 표가 없어 초안으로 채운 7항목은 추정으로 표시돼야 한다.""" tax = load_taxonomy(ROOT / "data/taxonomy") - high_risk = [c for c in tax.cases if c.high_risk] - # PDF IX-6: 가중 위험 9건 — A10, A13, A21, A22, A23, B3, B4, C3, D1 - assert len(high_risk) >= 7 # 본문에 high_risk=true 표시한 것 기준 + guessed = {c.case_id for c in tax.cases if c.tag_basis == "추정"} + assert guessed == {"M3a", "M3b", "M4", "M5", "M6", "M10", "R1"} + assert all(c.tag_basis in ("명시", "추정") for c in tax.cases) # ========== MinHash + LSH ==========