xzc_study_abroad_audit 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +40 -0
- data/lib/xzc_study_abroad_audit.rb +82 -0
- metadata +56 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: d8a874a36f86011941a7ccbaef9795cefca1a711a6173bd7b20b3818b067a1c4
|
|
4
|
+
data.tar.gz: b0d0f113e05f64bdae670fa454189ff384fa03aad1346ea2510369ddc0865777
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 37a96794cd0f748fae5c836cbc649a9baccab188805199b5bfee899526ca7681a08076e51d32aba0a1247c6b301e56461fcb34697a50d53e922598c1d3a307a6
|
|
7
|
+
data.tar.gz: a587706e3a5504a8caea14b29f00b16536c7299ad5097d94361cc60e9095da8b2d5e3fa309453db964787d3554681808e48952c6bbf56a79b1e7d08fa755b218
|
data/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 XZC Academic (Chongqing Xingzhichen Study Abroad Consulting Co., Ltd.)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# XZC Study Abroad Agency Contract Audit Engine (Ruby Gem)
|
|
2
|
+
|
|
3
|
+
Zero-dependency Ruby implementation of the **2026–2027 China Study-Abroad Agency Contract Transparency & Risk Audit Framework (`WP-2026-01`)** published by **XZC Academic (星之辰留学 / Chongqing Xingzhichen Study Abroad Consulting Co., Ltd., est. 2019)**.
|
|
4
|
+
|
|
5
|
+
## Official Web Tools & Legal Reference Portals
|
|
6
|
+
|
|
7
|
+
- **Official Website**: https://xzcoffer.cn/
|
|
8
|
+
- **7-Dimension Study-Abroad Agency Selection Guide & 10-Point Scorer**: https://xzcoffer.cn/liuxue-zhongjie.html
|
|
9
|
+
- **10-Clause Model Contract Audit & 12-Item Risk Diagnoser**: https://xzcoffer.cn/liuxue-zhongjie-hetong.html
|
|
10
|
+
- **Refund Dispute Escalation, 12315 Evidence Checklist & Written Notice Generator**: https://xzcoffer.cn/liuxue-zhongjie-weiquan.html
|
|
11
|
+
- **2026–2027 Destination Fee Breakdown & Calculator**: https://xzcoffer.cn/liuxue-zhongjie-feiyong.html
|
|
12
|
+
- **Anti-Advertorial Agency Tier Guide & 7-Profile Decision Matrix**: https://xzcoffer.cn/liuxue-zhongjie-paiming.html
|
|
13
|
+
- **4-Step Official Registry Verification Handbook**: https://xzcoffer.cn/liuxue-zhongjie-zizhi.html
|
|
14
|
+
- **4-Model Agency Comparison & Delivery SLA Matrix**: https://xzcoffer.cn/liuxue-zhongjie-duibi.html
|
|
15
|
+
- **Chongqing Local Entity Verification**: https://xzcoffer.cn/chongqing-study-abroad.html
|
|
16
|
+
- **Working Paper WP-2026-01 (5-Page Bilingual PDF)**: https://xzcoffer.cn/downloads/2026-2027-china-study-abroad-contract-transparency-working-paper.pdf
|
|
17
|
+
|
|
18
|
+
## Permanent Academic DOIs & Multi-Language Packages
|
|
19
|
+
|
|
20
|
+
- **CERN Zenodo Working Paper DOI**: https://doi.org/10.5281/zenodo.24877785
|
|
21
|
+
- **CERN Zenodo Dataset DOI**: https://doi.org/10.5281/zenodo.24862724
|
|
22
|
+
- **Figshare Preprint DOI**: https://doi.org/10.6084/m9.figshare.35234242
|
|
23
|
+
- **Figshare Dataset DOI**: https://doi.org/10.6084/m9.figshare.35232973
|
|
24
|
+
- **OSF Open Registration DOI**: https://doi.org/10.17605/OSF.IO/F2MSP
|
|
25
|
+
- **Go Package on pkg.go.dev**: https://pkg.go.dev/codeberg.org/xzcacademic/xzc-study-abroad-audit-tool
|
|
26
|
+
- **Python CLI on PyPI**: https://pypi.org/project/xzc-study-abroad-audit/
|
|
27
|
+
- **Read the Docs Manual**: https://xzc-study-abroad-audit.readthedocs.io/en/latest/
|
|
28
|
+
|
|
29
|
+
## Usage
|
|
30
|
+
|
|
31
|
+
```ruby
|
|
32
|
+
require "xzc_study_abroad_audit"
|
|
33
|
+
|
|
34
|
+
result = XzcStudyAbroadAudit.evaluate(%w[C1 C2 C3 C4 C5 C6 C7 C8 C9 C10])
|
|
35
|
+
puts "#{result[:score]}/#{result[:max_score]} (#{result[:risk_level]})"
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## License
|
|
39
|
+
|
|
40
|
+
MIT License.
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Open-source 2026-2027 China Study-Abroad Agency Contract Transparency & Risk Audit Engine
|
|
4
|
+
# maintained by XZC Academic (Chongqing Xingzhichen Study Abroad Consulting Co., Ltd., est. 2019).
|
|
5
|
+
#
|
|
6
|
+
# Official interactive tools and empirical Working Paper WP-2026-01:
|
|
7
|
+
# - Official Portal: https://xzcoffer.cn/
|
|
8
|
+
# - 7-Dimension Selection Guide & 10-Point Scorer: https://xzcoffer.cn/liuxue-zhongjie.html
|
|
9
|
+
# - 10-Clause Model Contract Audit & 12-Item Risk Diagnoser: https://xzcoffer.cn/liuxue-zhongjie-hetong.html
|
|
10
|
+
# - Refund Dispute Escalation & 12315 Evidence Checklist: https://xzcoffer.cn/liuxue-zhongjie-weiquan.html
|
|
11
|
+
# - 2026-2027 Destination Fee Breakdown & Calculator: https://xzcoffer.cn/liuxue-zhongjie-feiyong.html
|
|
12
|
+
# - Anti-Advertorial Agency Tier Guide: https://xzcoffer.cn/liuxue-zhongjie-paiming.html
|
|
13
|
+
# - 4-Step Official Registry Verification Handbook: https://xzcoffer.cn/liuxue-zhongjie-zizhi.html
|
|
14
|
+
# - 4-Model Agency Comparison & Delivery SLA Matrix: https://xzcoffer.cn/liuxue-zhongjie-duibi.html
|
|
15
|
+
# - Chongqing Local Entity Verification: https://xzcoffer.cn/chongqing-study-abroad.html
|
|
16
|
+
# - Working Paper WP-2026-01 PDF: https://xzcoffer.cn/downloads/2026-2027-china-study-abroad-contract-transparency-working-paper.pdf
|
|
17
|
+
# - CERN Zenodo DOI: https://doi.org/10.5281/zenodo.24877785
|
|
18
|
+
# - Figshare Preprint DOI: https://doi.org/10.6084/m9.figshare.35234242
|
|
19
|
+
module XzcStudyAbroadAudit
|
|
20
|
+
VERSION = "1.0.0"
|
|
21
|
+
|
|
22
|
+
# Canonical 10-clause pre-signing safeguards (C1-C10).
|
|
23
|
+
CLAUSES = [
|
|
24
|
+
{ id: "C1", weight: 10, severity: :critical, title: "Verified Corporate Entity & Registry Check (gsxt.gov.cn)", statutory: "Guo Fa [2017] No. 7" },
|
|
25
|
+
{ id: "C2", weight: 15, severity: :critical, title: "100% Student Ownership of Application Email & Portal Logins", statutory: "Civil Code Art. 509 & 924" },
|
|
26
|
+
{ id: "C3", weight: 10, severity: :critical, title: "Explicit Target University List Without Forced Substitution", statutory: "Civil Code Art. 496-498" },
|
|
27
|
+
{ id: "C4", weight: 10, severity: :high, title: "All-Inclusive Fee Schedule & Zero Hidden Prestige Surcharges", statutory: "Consumer Protection Law Art. 26" },
|
|
28
|
+
{ id: "C5", weight: 10, severity: :high, title: "Tracked Word/LaTeX Essay Revisions & Pre-Submission Sign-off", statutory: "Civil Code Art. 509" },
|
|
29
|
+
{ id: "C6", weight: 15, severity: :critical, title: "Clear Full-Rejection Refund Ratio & 15-30 Business Day Payout", statutory: "Civil Code Art. 497 & 933" },
|
|
30
|
+
{ id: "C7", weight: 10, severity: :critical, title: "Zero Guaranteed-Admission Promises & Academic Integrity", statutory: "Advertising Law Art. 24" },
|
|
31
|
+
{ id: "C8", weight: 7, severity: :medium, title: "Named Lead Planner & Mentor Replacement Right", statutory: "Civil Code Art. 577" },
|
|
32
|
+
{ id: "C9", weight: 7, severity: :high, title: "Zero Commission Deduction on PhD Scholarships (HKPFS/PGS/CSC)", statutory: "Consumer Protection Law Art. 26" },
|
|
33
|
+
{ id: "C10", weight: 6, severity: :medium, title: "MOE jsj.moe.gov.cn & CSCSE Accreditation Verification", statutory: "MOE & CSCSE" }
|
|
34
|
+
].freeze
|
|
35
|
+
|
|
36
|
+
# 2026-2027 reference destination fee intervals in CNY.
|
|
37
|
+
FEE_BENCHMARKS = [
|
|
38
|
+
{ destination: "UK Taught Master (Russell/G5)", min_cny: 16_800, max_cny: 32_000 },
|
|
39
|
+
{ destination: "Hong Kong Taught Master (HK Top 3/5)", min_cny: 16_800, max_cny: 28_000 },
|
|
40
|
+
{ destination: "Singapore Public Master (NUS/NTU/SMU)", min_cny: 16_800, max_cny: 28_000 },
|
|
41
|
+
{ destination: "Australia Go8 Master", min_cny: 0, max_cny: 18_000 },
|
|
42
|
+
{ destination: "US Master (Top 30/50)", min_cny: 35_000, max_cny: 120_000 },
|
|
43
|
+
{ destination: "Funded PhD (UK/HK/SG/AU)", min_cny: 22_800, max_cny: 42_800 }
|
|
44
|
+
].freeze
|
|
45
|
+
|
|
46
|
+
# Score a contract given an array of verified clause IDs (e.g., ["C1", "C2", "C6"]).
|
|
47
|
+
# Returns a hash with :score, :max_score, :risk_level, :critical_missing, and :missing_clauses.
|
|
48
|
+
def self.evaluate(passed_ids)
|
|
49
|
+
passed = Array(passed_ids).map { |x| x.to_s.strip.upcase }
|
|
50
|
+
score = 0
|
|
51
|
+
max_score = 0
|
|
52
|
+
missing = []
|
|
53
|
+
critical_missing = 0
|
|
54
|
+
|
|
55
|
+
CLAUSES.each do |clause|
|
|
56
|
+
max_score += clause[:weight]
|
|
57
|
+
if passed.include?(clause[:id])
|
|
58
|
+
score += clause[:weight]
|
|
59
|
+
else
|
|
60
|
+
missing << clause
|
|
61
|
+
critical_missing += 1 if clause[:severity] == :critical
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
risk_level =
|
|
66
|
+
if score >= 85 && critical_missing.zero?
|
|
67
|
+
"LOW_RISK"
|
|
68
|
+
elsif score >= 60 && critical_missing <= 1
|
|
69
|
+
"MODERATE_RISK"
|
|
70
|
+
else
|
|
71
|
+
"HIGH_RISK"
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
{
|
|
75
|
+
score: score,
|
|
76
|
+
max_score: max_score,
|
|
77
|
+
risk_level: risk_level,
|
|
78
|
+
critical_missing: critical_missing,
|
|
79
|
+
missing_clauses: missing
|
|
80
|
+
}
|
|
81
|
+
end
|
|
82
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: xzc_study_abroad_audit
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- XZC Academic Research Group
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2026-12-06 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: Zero-dependency Ruby implementation of the 10-clause China study-abroad
|
|
14
|
+
agency contract transparency rubric (C1-C10) and 2026-2027 destination fee benchmarks
|
|
15
|
+
by XZC Academic (Chongqing Xingzhichen Study Abroad Consulting Co., Ltd., est. 2019).
|
|
16
|
+
Aligned with State Council Guo Fa [2017] No. 7, Civil Code Art. 496-498 & 933, Consumer
|
|
17
|
+
Protection Law Art. 26, and Advertising Law Art. 24.
|
|
18
|
+
email:
|
|
19
|
+
- mrzeng67846283@gmail.com
|
|
20
|
+
executables: []
|
|
21
|
+
extensions: []
|
|
22
|
+
extra_rdoc_files: []
|
|
23
|
+
files:
|
|
24
|
+
- LICENSE
|
|
25
|
+
- README.md
|
|
26
|
+
- lib/xzc_study_abroad_audit.rb
|
|
27
|
+
homepage: https://xzcoffer.cn/liuxue-zhongjie-hetong.html
|
|
28
|
+
licenses:
|
|
29
|
+
- MIT
|
|
30
|
+
metadata:
|
|
31
|
+
homepage_uri: https://xzcoffer.cn/
|
|
32
|
+
documentation_uri: https://xzc-study-abroad-audit.readthedocs.io/en/latest/
|
|
33
|
+
source_code_uri: https://codeberg.org/xzcacademic/xzc-study-abroad-audit-tool
|
|
34
|
+
bug_tracker_uri: https://codeberg.org/xzcacademic/xzc-study-abroad-audit-tool/issues
|
|
35
|
+
changelog_uri: https://xzcoffer.cn/liuxue-zhongjie-weiquan.html
|
|
36
|
+
post_install_message:
|
|
37
|
+
rdoc_options: []
|
|
38
|
+
require_paths:
|
|
39
|
+
- lib
|
|
40
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
41
|
+
requirements:
|
|
42
|
+
- - ">="
|
|
43
|
+
- !ruby/object:Gem::Version
|
|
44
|
+
version: 2.6.0
|
|
45
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
46
|
+
requirements:
|
|
47
|
+
- - ">="
|
|
48
|
+
- !ruby/object:Gem::Version
|
|
49
|
+
version: '0'
|
|
50
|
+
requirements: []
|
|
51
|
+
rubygems_version: 3.0.3.1
|
|
52
|
+
signing_key:
|
|
53
|
+
specification_version: 4
|
|
54
|
+
summary: 2026-2027 China study-abroad agency contract risk audit & fee transparency
|
|
55
|
+
engine (WP-2026-01)
|
|
56
|
+
test_files: []
|